diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-22 18:25:24 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-23 17:50:12 +0800 |
commit | 7edbb0110f6ab04541ed2fef1e373d61d0dc063d (patch) | |
tree | 5a2473dc5cb9ba32e2dab75f2f0f1a3d8f663e43 | |
parent | 1506e00a2361ab641875d5f95966e8034b2902bc (diff) | |
download | dexon-7edbb0110f6ab04541ed2fef1e373d61d0dc063d.tar dexon-7edbb0110f6ab04541ed2fef1e373d61d0dc063d.tar.gz dexon-7edbb0110f6ab04541ed2fef1e373d61d0dc063d.tar.bz2 dexon-7edbb0110f6ab04541ed2fef1e373d61d0dc063d.tar.lz dexon-7edbb0110f6ab04541ed2fef1e373d61d0dc063d.tar.xz 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.go | 2 |
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++ |