diff options
author | Bas van Kervel <bas@ethdev.com> | 2015-06-10 15:42:14 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@gmail.com> | 2015-06-11 20:43:05 +0800 |
commit | 7584e68c21cfd155a9e72b29422d8d458691d4ae (patch) | |
tree | f552bef4bb93ae8a0199a84fe1cb20a6ffb12b4b /rpc/api/shh.go | |
parent | 1fe617fa5791bffb6b3cc60636c6629c7aca36d3 (diff) | |
download | go-tangerine-7584e68c21cfd155a9e72b29422d8d458691d4ae.tar go-tangerine-7584e68c21cfd155a9e72b29422d8d458691d4ae.tar.gz go-tangerine-7584e68c21cfd155a9e72b29422d8d458691d4ae.tar.bz2 go-tangerine-7584e68c21cfd155a9e72b29422d8d458691d4ae.tar.lz go-tangerine-7584e68c21cfd155a9e72b29422d8d458691d4ae.tar.xz go-tangerine-7584e68c21cfd155a9e72b29422d8d458691d4ae.tar.zst go-tangerine-7584e68c21cfd155a9e72b29422d8d458691d4ae.zip |
upgrade web3.js with _extend support
Diffstat (limited to 'rpc/api/shh.go')
-rw-r--r-- | rpc/api/shh.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rpc/api/shh.go b/rpc/api/shh.go index 04c53c93e..e83a7b22e 100644 --- a/rpc/api/shh.go +++ b/rpc/api/shh.go @@ -9,6 +9,10 @@ import ( "github.com/ethereum/go-ethereum/xeth" ) +const ( + ShhApiVersion = "1.0" +) + var ( // mapping between methods and handlers shhMapping = map[string]shhhandler{ @@ -71,6 +75,10 @@ func (self *shhApi) Name() string { return ShhApiName } +func (self *shhApi) ApiVersion() string { + return ShhApiVersion +} + func (self *shhApi) Version(req *shared.Request) (interface{}, error) { w := self.xeth.Whisper() if w == nil { |