Skip to content

Commit

Permalink
RawMempool and cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneearth committed May 21, 2018
1 parent 507b57a commit cd93f43
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 29 deletions.
41 changes: 20 additions & 21 deletions public/bitbox-rest-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -736,27 +736,6 @@
}
}
},
"/blockchain/getTxOutSetInfo": {
"get": {
"tags": [
"blockchain"
],
"summary": "Returns statistics about the unspent transaction output set.",
"description": "Returns statistics about the unspent transaction output set. Note this call may take some time.",
"operationId": "getTxOutSetInfo",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "successful operation"
},
"400": {
"description": "Invalid tag value"
}
}
}
},
"/blockchain/preciousBlock/{blockhash}": {
"get": {
"tags": [
Expand Down Expand Up @@ -1857,5 +1836,25 @@
},
}
},
"RawMempool": {
"type": "object",
"properties": {
"size": {
"type": "number"
},
"bytes": {
"type": "number"
},
"usage": {
"type": "number"
},
"maxmempool": {
"type": "number"
},
"mempoolminfee": {
"type": "number"
},
}
}
}
}
8 changes: 0 additions & 8 deletions routes/blockchain.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,6 @@ router.get('/getTxOutProof/:txids', function(req, res, next) {
});
});

router.get('/getTxOutSetInfo', function(req, res, next) {
BITBOX.Blockchain.getTxOutSetInfo()
.then((result) => {
res.json(result);
}, (err) => { console.log(err);
});
});

router.get('/preciousBlock/:hash', function(req, res, next) {
BITBOX.Blockchain.preciousBlock(req.params.hash)
.then((result) => {
Expand Down

0 comments on commit cd93f43

Please sign in to comment.