Add empty total difficulty to test blocks and clean up stopping the node

This commit is contained in:
Gustav Simonsson
2015-03-06 03:25:57 +01:00
parent 676a0de58d
commit 27c42ea934
3 changed files with 31 additions and 3 deletions

View File

@ -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 {