Преглед на файлове

core: set the state for the managed tx state

Set the state for the managed tx state instead of creating a new
managed state.
obscuren преди 10 години
родител
ревизия
7edbb0110f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      core/chain_manager.go

+ 1 - 1
core/chain_manager.go

@@ -576,7 +576,7 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error {
 				})
 
 				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}
 				queueEvent.canonicalCount++