aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-12-30 19:32:15 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-02-01 20:58:14 +0800
commitd3642b0715f9168ee523f2cd8414f7fc4fc4ea33 (patch)
treecf975b43e4ccb23416207f2263ca2efca2eecfb0 /rpc
parentf85212aa86c8feac17f582ac14f6b15260015261 (diff)
downloaddexon-d3642b0715f9168ee523f2cd8414f7fc4fc4ea33.tar.gz
dexon-d3642b0715f9168ee523f2cd8414f7fc4fc4ea33.tar.zst
dexon-d3642b0715f9168ee523f2cd8414f7fc4fc4ea33.zip
core, eth, rpc/api: rpc method to inspect the txpool queue
Diffstat (limited to 'rpc')
-rw-r--r--rpc/javascript.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/rpc/javascript.go b/rpc/javascript.go
index 9e3b2218b..c145163e5 100644
--- a/rpc/javascript.go
+++ b/rpc/javascript.go
@@ -71,8 +71,16 @@ 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);