diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-25 19:09:55 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-25 19:09:55 +0800 |
commit | 2b93843d86532db3d6b530daf15c04fde0b73eba (patch) | |
tree | f9a5fb60cde74d70ba88e2bbe58f9f51391322f7 /xeth/xeth.go | |
parent | c956bcb13c287baf1d4ae1b2c9ae83d43423d67f (diff) | |
download | go-tangerine-2b93843d86532db3d6b530daf15c04fde0b73eba.tar.gz go-tangerine-2b93843d86532db3d6b530daf15c04fde0b73eba.tar.zst go-tangerine-2b93843d86532db3d6b530daf15c04fde0b73eba.zip |
Improve protocol version reporting
Diffstat (limited to 'xeth/xeth.go')
-rw-r--r-- | xeth/xeth.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go index 8296e61bb..36c9979f4 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -221,12 +221,20 @@ func (self *XEth) IsMining() bool { return self.backend.IsMining() } +func (self *XEth) EthVersion() string { + return string(self.backend.EthVersion()) +} + func (self *XEth) NetworkVersion() string { - return string(self.backend.ProtocolVersion()) + return string(self.backend.NetVersion()) +} + +func (self *XEth) WhisperVersion() string { + return string(self.backend.ShhVersion()) } func (self *XEth) ClientVersion() string { - return self.backend.Version() + return self.backend.ClientVersion() } func (self *XEth) SetMining(shouldmine bool) bool { |