diff options
author | obscuren <geffobscura@gmail.com> | 2014-09-08 06:48:39 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-09-08 06:48:39 +0800 |
commit | 250d40bca01ae92ef5db6258b519e5903929f764 (patch) | |
tree | 7276fc6f7e2578ad2190852aac16d6f3b7d9ab1c | |
parent | adabd71a4ad808faf13f0253ad248bc746308db5 (diff) | |
download | dexon-250d40bca01ae92ef5db6258b519e5903929f764.tar.gz dexon-250d40bca01ae92ef5db6258b519e5903929f764.tar.zst dexon-250d40bca01ae92ef5db6258b519e5903929f764.zip |
Reset the transient state when a new block's been found
-rw-r--r-- | ethchain/state_manager.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index 08bd22d29..33af259cf 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -237,6 +237,8 @@ func (sm *StateManager) Process(block *Block, dontReact bool) (err error) { // Add the block to the chain sm.bc.Add(block) + sm.transState = state.Copy() + // Create a bloom bin for this block filter := sm.createBloomFilter(state) // Persist the data |