diff options
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 3f514c9e9..59225856d 100644 --- a/blockpool/peers.go +++ b/blockpool/peers.go @@ -165,6 +165,7 @@ func (self *peer) setChainInfoFromBlock(block *types.Block) { // distribute block request among known peers func (self *peers) requestBlocks(attempts int, hashes []common.Hash) { self.lock.RLock() + defer self.lock.RUnlock() peerCount := len(self.peers) // on first attempt use the best peer |