core, eth, rpc/api: rpc method to inspect the txpool queue

This commit is contained in:
Péter Szilágyi
2015-12-30 13:32:15 +02:00
parent f85212aa86
commit d3642b0715
3 changed files with 113 additions and 1 deletions

View File

@ -70,9 +70,17 @@ web3._extend({
],
properties:
[
new web3._extend.Property({
name: 'content',
getter: 'txpool_content'
}),
new web3._extend.Property({
name: 'inspect',
getter: 'txpool_inspect'
}),
new web3._extend.Property({
name: 'status',
getter: 'txpool_status'
getter: 'txpool_status',
outputFormatter: function(status) {
status.pending = web3._extend.utils.toDecimal(status.pending);
status.queued = web3._extend.utils.toDecimal(status.queued);