aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-02-11 02:21:13 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-02-11 02:21:13 +0800
commitd53e5646ecfce75790fea45a1ee552494ef88668 (patch)
treef00d3e151227b4e31be2293401692927473bc17e /eth
parentc14900dbb007af8aefc5f5583f3c17a613c66802 (diff)
downloadgo-tangerine-d53e5646ecfce75790fea45a1ee552494ef88668.tar.gz
go-tangerine-d53e5646ecfce75790fea45a1ee552494ef88668.tar.zst
go-tangerine-d53e5646ecfce75790fea45a1ee552494ef88668.zip
Use strongly-typed objects
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go15
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", &ethlogger.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