Removing "raw block".

This commit is contained in:
softsimon
2021-08-03 18:15:33 +03:00
parent b9246a72f2
commit 8eb70416da
9 changed files with 5 additions and 33 deletions

View File

@@ -486,7 +486,7 @@ class Routes {
public async getRawTransaction(req: Request, res: Response) {
try {
const transaction = await transactionUtils.$getRawTransactionExtended(req.params.txId, true);
const transaction: IEsploraApi.Transaction = await bitcoinApi.$getRawTransaction(req.params.txId, true);
res.setHeader('content-type', 'text/plain');
res.send(transaction.hex);
} catch (e) {
@@ -530,16 +530,6 @@ class Routes {
}
}
public async getRawBlock(req: Request, res: Response) {
try {
const blockHeader = await bitcoinApi.$getRawBlock(req.params.hash);
res.setHeader('content-type', 'text/plain');
res.send(blockHeader);
} catch (e) {
res.status(500).send(e.message || e);
}
}
public async getBlocks(req: Request, res: Response) {
try {
loadingIndicators.setProgress('blocks', 0);