aboutsummaryrefslogtreecommitdiffstats
path: root/chain/chain_manager.go
diff options
context:
space:
mode:
Diffstat (limited to 'chain/chain_manager.go')
-rw-r--r--chain/chain_manager.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/chain/chain_manager.go b/chain/chain_manager.go
index 217a50103..077db649f 100644
--- a/chain/chain_manager.go
+++ b/chain/chain_manager.go
@@ -328,8 +328,8 @@ func (self *ChainManager) InsertChain(chain *BlockChain) {
for e := chain.Front(); e != nil; e = e.Next() {
link := e.Value.(*link)
- self.SetTotalDifficulty(link.td)
self.add(link.block)
+ self.SetTotalDifficulty(link.td)
self.Ethereum.EventMux().Post(NewBlockEvent{link.block})
self.Ethereum.EventMux().Post(link.messages)
}