aboutsummaryrefslogtreecommitdiffstats
path: root/eth/backend.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-03-06 10:25:57 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-03-10 01:03:35 +0800
commit27c42ea93488790d1c509c3ee6f187a1edab7e0a (patch)
tree7321c7a4af96cb30716caaac6d1467f9941819e4 /eth/backend.go
parent676a0de58d3d7c508b0eeeff192d2095a46f7382 (diff)
downloaddexon-27c42ea93488790d1c509c3ee6f187a1edab7e0a.tar
dexon-27c42ea93488790d1c509c3ee6f187a1edab7e0a.tar.gz
dexon-27c42ea93488790d1c509c3ee6f187a1edab7e0a.tar.bz2
dexon-27c42ea93488790d1c509c3ee6f187a1edab7e0a.tar.lz
dexon-27c42ea93488790d1c509c3ee6f187a1edab7e0a.tar.xz
dexon-27c42ea93488790d1c509c3ee6f187a1edab7e0a.tar.zst
dexon-27c42ea93488790d1c509c3ee6f187a1edab7e0a.zip
Add empty total difficulty to test blocks and clean up stopping the node
Diffstat (limited to 'eth/backend.go')
-rw-r--r--eth/backend.go11
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 {