fix error fatal error: concurrent map read and map write

This commit is contained in:
parmarrushabh 2018-11-12 11:39:43 +05:30
parent 7d162336fa
commit 3268d372a0

View file

@ -669,7 +669,7 @@ func (f *Fetcher) insert(peer string, block *types.Block) {
go f.broadcastBlock(block, true)
return
}
f.enqueue(peer, newBlock)
f.Enqueue(peer, newBlock)
return
default:
// Something went very wrong, drop the peer