diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-11 02:21:13 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-02-11 02:21:13 +0800 |
commit | d53e5646ecfce75790fea45a1ee552494ef88668 (patch) | |
tree | f00d3e151227b4e31be2293401692927473bc17e /eth | |
parent | c14900dbb007af8aefc5f5583f3c17a613c66802 (diff) | |
download | dexon-d53e5646ecfce75790fea45a1ee552494ef88668.tar.gz dexon-d53e5646ecfce75790fea45a1ee552494ef88668.tar.zst dexon-d53e5646ecfce75790fea45a1ee552494ef88668.zip |
Use strongly-typed objects
Diffstat (limited to 'eth')
-rw-r--r-- | eth/backend.go | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/eth/backend.go b/eth/backend.go index 5057aa3aa..cdccd3940 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -222,14 +222,13 @@ func (s *Ethereum) MaxPeers() int { // Start the ethereum func (s *Ethereum) Start(seed bool) error { - evd := map[string]interface{}{ - "version_string": s.ClientIdentity().String(), - "guid": ethutil.Bytes2Hex(s.ClientIdentity().Pubkey()), - "level": "debug", - "coinbase": ethutil.Bytes2Hex(s.KeyManager().Address()), - "eth_version": ProtocolVersion, - } - jsonlogger.LogJson("starting", evd) + jsonlogger.LogJson("starting", ðlogger.LogStarting{ + ClientString: s.ClientIdentity().String(), + Guid: ethutil.Bytes2Hex(s.ClientIdentity().Pubkey()), + Coinbase: ethutil.Bytes2Hex(s.KeyManager().Address()), + ProtocolVersion: ProtocolVersion, + }) + err := s.net.Start() if err != nil { return err |