diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-04 21:54:10 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-04 21:54:10 +0800 |
commit | c92e48ce3f9de2196a713b24d5c27d6c664826d9 (patch) | |
tree | 811cc5ab68778c4d26550a80e950a0aad361b06a /eth | |
parent | e7b33e9ae796cd0ba4c840ee3fead85132ebdccd (diff) | |
download | go-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 'eth')
-rw-r--r-- | eth/backend.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go index f67f9c78b..27d3f3b3f 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -132,7 +132,8 @@ type Ethereum struct { logger ethlogger.LogSystem - Mining bool + Mining bool + version string } func New(config *Config) (*Ethereum, error) { @@ -175,6 +176,7 @@ func New(config *Config) (*Ethereum, error) { blacklist: p2p.NewBlacklist(), eventMux: &event.TypeMux{}, logger: logger, + version: config.Name, } eth.chainManager = core.NewChainManager(db, eth.EventMux()) @@ -231,6 +233,7 @@ func (s *Ethereum) PeerCount() int { return s.net.PeerCoun func (s *Ethereum) Peers() []*p2p.Peer { return s.net.Peers() } func (s *Ethereum) MaxPeers() int { return s.net.MaxPeers } func (s *Ethereum) Coinbase() []byte { return nil } // TODO +func (s *Ethereum) ClientVersion() string { return s.version } // Start the ethereum func (s *Ethereum) Start() error { |