diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-03-06 10:25:57 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-03-10 01:03:35 +0800 |
commit | 27c42ea93488790d1c509c3ee6f187a1edab7e0a (patch) | |
tree | 7321c7a4af96cb30716caaac6d1467f9941819e4 /eth | |
parent | 676a0de58d3d7c508b0eeeff192d2095a46f7382 (diff) | |
download | dexon-27c42ea93488790d1c509c3ee6f187a1edab7e0a.tar.gz dexon-27c42ea93488790d1c509c3ee6f187a1edab7e0a.tar.zst dexon-27c42ea93488790d1c509c3ee6f187a1edab7e0a.zip |
Add empty total difficulty to test blocks and clean up stopping the node
Diffstat (limited to 'eth')
-rw-r--r-- | eth/backend.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/eth/backend.go b/eth/backend.go index 584d60c7e..f42ceda69 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -275,6 +275,17 @@ func (s *Ethereum) Start() error { return nil } +func (s *Ethereum) StartForTest() { + jsonlogger.LogJson(&logger.LogStarting{ + ClientString: s.net.Name, + ProtocolVersion: ProtocolVersion, + }) + + // Start services + s.txPool.Start() + s.blockPool.Start() +} + func (self *Ethereum) SuggestPeer(nodeURL string) error { n, err := discover.ParseNode(nodeURL) if err != nil { |