aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-04 21:54:10 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-04 21:54:10 +0800
commitc92e48ce3f9de2196a713b24d5c27d6c664826d9 (patch)
tree811cc5ab68778c4d26550a80e950a0aad361b06a /xeth
parente7b33e9ae796cd0ba4c840ee3fead85132ebdccd (diff)
downloadgo-tangerine-c92e48ce3f9de2196a713b24d5c27d6c664826d9.tar
go-tangerine-c92e48ce3f9de2196a713b24d5c27d6c664826d9.tar.gz
go-tangerine-c92e48ce3f9de2196a713b24d5c27d6c664826d9.tar.bz2
go-tangerine-c92e48ce3f9de2196a713b24d5c27d6c664826d9.tar.lz
go-tangerine-c92e48ce3f9de2196a713b24d5c27d6c664826d9.tar.xz
go-tangerine-c92e48ce3f9de2196a713b24d5c27d6c664826d9.tar.zst
go-tangerine-c92e48ce3f9de2196a713b24d5c27d6c664826d9.zip
Add client_version RPC message
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index d4c188fec..8dd905b86 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -36,6 +36,7 @@ type Backend interface {
EventMux() *event.TypeMux
Whisper() *whisper.Whisper
Miner() *miner.Miner
+ ClientVersion() string
}
type XEth struct {
@@ -164,6 +165,10 @@ func (self *XEth) IsContract(address string) bool {
return len(self.State().SafeGet(address).Code()) > 0
}
+func (self *XEth) GetClientVersion() string {
+ return self.eth.ClientVersion()
+}
+
func (self *XEth) SecretToAddress(key string) string {
pair, err := crypto.NewKeyPairFromSec(fromHex(key))
if err != nil {