added txpool API

This commit is contained in:
Bas van Kervel
2015-06-10 10:37:10 +02:00
committed by Bas van Kervel
parent c6c443385b
commit 87b62f75a7
4 changed files with 91 additions and 1 deletions

View File

@ -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
}