good morning!!!!

Skip to content
Snippets Groups Projects
Commit b7fc85d6 authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

core: fix #1154, sort out data race accessing the future blocks

parent 9f467c38
Branches
Tags
No related merge requests found
......@@ -522,9 +522,9 @@ type queueEvent struct {
}
func (self *ChainManager) procFutureBlocks() {
blocks := make([]*types.Block, len(self.futureBlocks.blocks))
blocks := []*types.Block{}
self.futureBlocks.Each(func(i int, block *types.Block) {
blocks[i] = block
blocks = append(blocks, block)
})
types.BlockBy(types.Number).Sort(blocks)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment