aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-13 23:36:27 +0800
committerobscuren <geffobscura@gmail.com>2015-03-13 23:36:27 +0800
commitb663e8b29a7451a79b909c017f8a244d23c8fef4 (patch)
tree722ffd039ea9970170bbe054f8044625bc719373 /eth
parentf1fcda4f2fe05e46e3d350cb89a52fd33df3767f (diff)
parente3b64d70c212d893c147b8af62abe5c03fb2f492 (diff)
downloadgo-tangerine-b663e8b29a7451a79b909c017f8a244d23c8fef4.tar
go-tangerine-b663e8b29a7451a79b909c017f8a244d23c8fef4.tar.gz
go-tangerine-b663e8b29a7451a79b909c017f8a244d23c8fef4.tar.bz2
go-tangerine-b663e8b29a7451a79b909c017f8a244d23c8fef4.tar.lz
go-tangerine-b663e8b29a7451a79b909c017f8a244d23c8fef4.tar.xz
go-tangerine-b663e8b29a7451a79b909c017f8a244d23c8fef4.tar.zst
go-tangerine-b663e8b29a7451a79b909c017f8a244d23c8fef4.zip
Merge branch 'rpcfrontier' into develop
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 6fd211b35..bb203b4a6 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -131,6 +131,7 @@ type Ethereum struct {
Mining bool
DataDir string
+ version string
}
func New(config *Config) (*Ethereum, error) {
@@ -165,6 +166,7 @@ func New(config *Config) (*Ethereum, error) {
logger: servlogger,
accountManager: config.AccountManager,
DataDir: config.DataDir,
+ version: config.Name, // TODO should separate from Name
}
eth.chainManager = core.NewChainManager(blockDb, stateDb, eth.EventMux())
@@ -236,6 +238,7 @@ func (s *Ethereum) IsListening() bool { return true } // Alwa
func (s *Ethereum) PeerCount() int { return s.net.PeerCount() }
func (s *Ethereum) Peers() []*p2p.Peer { return s.net.Peers() }
func (s *Ethereum) MaxPeers() int { return s.net.MaxPeers }
+func (s *Ethereum) Version() string { return s.version }
// Start the ethereum
func (s *Ethereum) Start() error {