core: set the state for the managed tx state
Set the state for the managed tx state instead of creating a new managed state.
This commit is contained in:
parent
1506e00a23
commit
7edbb0110f
@ -576,7 +576,7 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error {
|
|||||||
})
|
})
|
||||||
|
|
||||||
self.setTransState(state.New(block.Root(), self.stateDb))
|
self.setTransState(state.New(block.Root(), self.stateDb))
|
||||||
self.setTxState(state.New(block.Root(), self.stateDb))
|
self.txState.SetState(state.New(block.Root(), self.stateDb))
|
||||||
|
|
||||||
queue[i] = ChainEvent{block, logs}
|
queue[i] = ChainEvent{block, logs}
|
||||||
queueEvent.canonicalCount++
|
queueEvent.canonicalCount++
|
||||||
|
Loading…
Reference in New Issue
Block a user