aboutsummaryrefslogtreecommitdiffstats
path: root/blockpool
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-05 00:23:51 +0800
committerobscuren <geffobscura@gmail.com>2015-04-05 00:23:51 +0800
commit7a18a39351c229d15729abcbc1b6b7f7ce92708d (patch)
tree17f0f83af9e146ea6a9693c09ec3f7682f25d167 /blockpool
parentf9488cb763d218683904fe0f46b409d8ef42f963 (diff)
downloadgo-tangerine-7a18a39351c229d15729abcbc1b6b7f7ce92708d.tar
go-tangerine-7a18a39351c229d15729abcbc1b6b7f7ce92708d.tar.gz
go-tangerine-7a18a39351c229d15729abcbc1b6b7f7ce92708d.tar.bz2
go-tangerine-7a18a39351c229d15729abcbc1b6b7f7ce92708d.tar.lz
go-tangerine-7a18a39351c229d15729abcbc1b6b7f7ce92708d.tar.xz
go-tangerine-7a18a39351c229d15729abcbc1b6b7f7ce92708d.tar.zst
go-tangerine-7a18a39351c229d15729abcbc1b6b7f7ce92708d.zip
prevent deadlock
Diffstat (limited to 'blockpool')
-rw-r--r--blockpool/blockpool.go2
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 {