aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-02-02 17:53:23 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-02-02 17:53:23 +0800
commit6005dcef5b5dd4918d4e9aeaed515d867a7cde2a (patch)
treecf975b43e4ccb23416207f2263ca2efca2eecfb0 /rpc
parentf85212aa86c8feac17f582ac14f6b15260015261 (diff)
parentd3642b0715f9168ee523f2cd8414f7fc4fc4ea33 (diff)
downloadgo-tangerine-6005dcef5b5dd4918d4e9aeaed515d867a7cde2a.tar
go-tangerine-6005dcef5b5dd4918d4e9aeaed515d867a7cde2a.tar.gz
go-tangerine-6005dcef5b5dd4918d4e9aeaed515d867a7cde2a.tar.bz2
go-tangerine-6005dcef5b5dd4918d4e9aeaed515d867a7cde2a.tar.lz
go-tangerine-6005dcef5b5dd4918d4e9aeaed515d867a7cde2a.tar.xz
go-tangerine-6005dcef5b5dd4918d4e9aeaed515d867a7cde2a.tar.zst
go-tangerine-6005dcef5b5dd4918d4e9aeaed515d867a7cde2a.zip
Merge pull request #2098 from karalabe/rpc-txpool-queue-inspection
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);