浏览代码

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++