Merge pull request #266 from nguyenbatam/fix_error_panic_concurrent_map_read_and_map_write

fix error fatal error: concurrent map read and map write
This commit is contained in:
Tuna 2018-11-08 04:52:24 +01:00 committed by GitHub
commit 10c817b646
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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