diff options
author | zelig <viktor.tron@gmail.com> | 2015-04-09 13:31:06 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-04-09 20:58:35 +0800 |
commit | a009132c2429adca5ba058f46c0a460b287a4407 (patch) | |
tree | 6fae21043d908d2d4a73d0fa2aa87e900f0e1e33 /blockpool/peers.go | |
parent | 0e2bc23148731a2e9fbb22885aced057e308335a (diff) | |
download | dexon-a009132c2429adca5ba058f46c0a460b287a4407.tar dexon-a009132c2429adca5ba058f46c0a460b287a4407.tar.gz dexon-a009132c2429adca5ba058f46c0a460b287a4407.tar.bz2 dexon-a009132c2429adca5ba058f46c0a460b287a4407.tar.lz dexon-a009132c2429adca5ba058f46c0a460b287a4407.tar.xz dexon-a009132c2429adca5ba058f46c0a460b287a4407.tar.zst dexon-a009132c2429adca5ba058f46c0a460b287a4407.zip |
oops peer unlocked before return - fixes deadlock
Diffstat (limited to 'blockpool/peers.go')
-rw-r--r-- | blockpool/peers.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/blockpool/peers.go b/blockpool/peers.go index 8a52545df..6109ca4b4 100644 --- a/blockpool/peers.go +++ b/blockpool/peers.go @@ -472,6 +472,7 @@ func (self *peer) getBlockHashes() bool { } else { // XXX added currentBlock check (?) if self.currentBlock != nil && self.currentBlock.Td != nil && !self.currentBlock.Queued() { + plog.DebugDetailf("HeadSection: <%s> inserted %s to blockchain... check TD %v =?= %v", self.id, hex(self.parentHash), self.td, self.currentBlock.Td) if self.td.Cmp(self.currentBlock.Td) != 0 { self.addError(ErrIncorrectTD, "on block %x", self.currentBlockHash) self.bp.status.badPeers[self.id]++ |