fix error fatal error: concurrent map read and map write

This commit is contained in:
Nguyen Ba Tam 2018-11-08 09:24:18 +07:00
parent 8f4fc42df1
commit 20ac07b95c

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