mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 09:12:05 -07:00
Bulk mempool response format fixed
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user