aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-22 18:25:24 +0800
committerobscuren <geffobscura@gmail.com>2015-04-23 17:50:12 +0800
commit7edbb0110f6ab04541ed2fef1e373d61d0dc063d (patch)
tree5a2473dc5cb9ba32e2dab75f2f0f1a3d8f663e43
parent1506e00a2361ab641875d5f95966e8034b2902bc (diff)
downloaddexon-7edbb0110f6ab04541ed2fef1e373d61d0dc063d.tar.gz
dexon-7edbb0110f6ab04541ed2fef1e373d61d0dc063d.tar.zst
dexon-7edbb0110f6ab04541ed2fef1e373d61d0dc063d.zip
core: set the state for the managed tx state
Set the state for the managed tx state instead of creating a new managed state.
-rw-r--r--core/chain_manager.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go
index 1df56b27f..47f84b80a 100644
--- a/core/chain_manager.go
+++ b/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++