aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/utils.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-06-10 18:35:12 +0800
committerBas van Kervel <basvankervel@gmail.com>2015-06-11 20:01:41 +0800
commit7e41d7ac51fdaba1c03ec3f9cb8cc7a7bc3830f4 (patch)
treed14084ef228c60159b64f35e8c18602230f5166b /rpc/api/utils.go
parentbd38428f33b127e9c60d26127695e50c55798fcd (diff)
downloadgo-tangerine-7e41d7ac51fdaba1c03ec3f9cb8cc7a7bc3830f4.tar.gz
go-tangerine-7e41d7ac51fdaba1c03ec3f9cb8cc7a7bc3830f4.tar.zst
go-tangerine-7e41d7ac51fdaba1c03ec3f9cb8cc7a7bc3830f4.zip
added shh API
Diffstat (limited to 'rpc/api/utils.go')
-rw-r--r--rpc/api/utils.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/rpc/api/utils.go b/rpc/api/utils.go
index b44a325a8..ad8a97e92 100644
--- a/rpc/api/utils.go
+++ b/rpc/api/utils.go
@@ -31,7 +31,9 @@ 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:
+ case ShhApiName:
+ apis[i] = NewShhApi(xeth, eth, codec)
+ case TxPoolApiName:
apis[i] = NewTxPoolApi(xeth, eth, codec)
case PersonalApiName:
apis[i] = NewPersonalApi(xeth, eth, codec)
@@ -55,7 +57,9 @@ func Javascript(name string) string {
return Miner_JS
case NetApiName:
return Net_JS
- case txPoolApiName:
+ case ShhApiName:
+ return Shh_JS
+ case TxPoolApiName:
return TxPool_JS
case PersonalApiName:
return Personal_JS