diff options
author | Bas van Kervel <bas@ethdev.com> | 2015-06-10 16:37:10 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@gmail.com> | 2015-06-11 20:01:41 +0800 |
commit | 87b62f75a7b9c15c17f3352f1b50ad88966e7070 (patch) | |
tree | b63038e521d6d685160725e55168796f7f035179 /rpc/api/utils.go | |
parent | c6c443385b3e9998d3090785e4287e3836c70219 (diff) | |
download | dexon-87b62f75a7b9c15c17f3352f1b50ad88966e7070.tar dexon-87b62f75a7b9c15c17f3352f1b50ad88966e7070.tar.gz dexon-87b62f75a7b9c15c17f3352f1b50ad88966e7070.tar.bz2 dexon-87b62f75a7b9c15c17f3352f1b50ad88966e7070.tar.lz dexon-87b62f75a7b9c15c17f3352f1b50ad88966e7070.tar.xz dexon-87b62f75a7b9c15c17f3352f1b50ad88966e7070.tar.zst dexon-87b62f75a7b9c15c17f3352f1b50ad88966e7070.zip |
added txpool API
Diffstat (limited to 'rpc/api/utils.go')
-rw-r--r-- | rpc/api/utils.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rpc/api/utils.go b/rpc/api/utils.go index 072abf883..b44a325a8 100644 --- a/rpc/api/utils.go +++ b/rpc/api/utils.go @@ -31,6 +31,8 @@ func ParseApiString(apistr string, codec codec.Codec, xeth *xeth.XEth, eth *eth. apis[i] = NewMinerApi(eth, codec) case NetApiName: apis[i] = NewNetApi(xeth, eth, codec) + case txPoolApiName: + apis[i] = NewTxPoolApi(xeth, eth, codec) case PersonalApiName: apis[i] = NewPersonalApi(xeth, eth, codec) case Web3ApiName: @@ -53,6 +55,8 @@ func Javascript(name string) string { return Miner_JS case NetApiName: return Net_JS + case txPoolApiName: + return TxPool_JS case PersonalApiName: return Personal_JS } |