Bulk mempool response format fixed

This commit is contained in:
Stoyan Zhekov
2020-07-29 00:10:26 +09:00
parent 74112a1ed8
commit 14ac642bdb
2 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -54,8 +54,8 @@ class Electrum {
_this.router.post('/balance', _this.balanceBulk)
_this.router.get('/transactions/:address', _this.getTransactions)
_this.router.post('/transactions', _this.transactionsBulk)
_this.router.get('/mempool/:address', _this.getMempool)
_this.router.post('/mempool', _this.mempoolBulk)
_this.router.get('/unconfirmed/:address', _this.getMempool)
_this.router.post('/unconfirmed', _this.mempoolBulk)
}
// Initializes a connection to electrum servers.
@@ -894,7 +894,7 @@ class Electrum {
res.status(200)
return res.json({
success: true,
mempool: result
utxos: result
})
} catch (err) {
wlogger.error('Error in electrumx.js/mempoolBulk().', err)