diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-03-10 19:07:34 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-03-10 19:07:34 +0800 |
commit | 0542df941f57a75fa7b699089db1d9ae40e4ff71 (patch) | |
tree | 8e1c51b0000102abb8f61b6a1e171f8843b711e6 /eth/backend.go | |
parent | 56524d13b5113751539fe0a86a0a88fc4c45d2af (diff) | |
parent | 27c42ea93488790d1c509c3ee6f187a1edab7e0a (diff) | |
download | go-tangerine-0542df941f57a75fa7b699089db1d9ae40e4ff71.tar.gz go-tangerine-0542df941f57a75fa7b699089db1d9ae40e4ff71.tar.zst go-tangerine-0542df941f57a75fa7b699089db1d9ae40e4ff71.zip |
Merge pull request #449 from Gustav-Simonsson/add_blockchain_tests2
Add empty total difficulty to test blocks and clean up stopping the node
Diffstat (limited to 'eth/backend.go')
-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 { |