diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-05 00:23:51 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-05 00:23:51 +0800 |
commit | 7a18a39351c229d15729abcbc1b6b7f7ce92708d (patch) | |
tree | 17f0f83af9e146ea6a9693c09ec3f7682f25d167 /blockpool/blockpool.go | |
parent | f9488cb763d218683904fe0f46b409d8ef42f963 (diff) | |
download | dexon-7a18a39351c229d15729abcbc1b6b7f7ce92708d.tar.gz dexon-7a18a39351c229d15729abcbc1b6b7f7ce92708d.tar.zst dexon-7a18a39351c229d15729abcbc1b6b7f7ce92708d.zip |
prevent deadlock
Diffstat (limited to 'blockpool/blockpool.go')
-rw-r--r-- | blockpool/blockpool.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |