From 7a18a39351c229d15729abcbc1b6b7f7ce92708d Mon Sep 17 00:00:00 2001 From: obscuren Date: Sat, 4 Apr 2015 18:23:51 +0200 Subject: prevent deadlock --- blockpool/blockpool.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'blockpool') diff --git a/blockpool/blockpool.go b/blockpool/blockpool.go index e65032fb5..79b6f8cc0 100644 --- a/blockpool/blockpool.go +++ b/blockpool/blockpool.go @@ -622,6 +622,8 @@ func (self *BlockPool) AddBlock(block *types.Block, peerId string) { entry := self.get(hash) + fmt.Println("block number", block.Number()) + defer fmt.Println("AddBlock done") // a peer's current head block is appearing the first time if hash == sender.currentBlockHash { if sender.currentBlock == nil { -- cgit