aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_manager.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-13 19:06:27 +0800
committerobscuren <geffobscura@gmail.com>2014-06-13 19:06:27 +0800
commitc734dde982c4ce778afa074e94efb09e552dbd84 (patch)
treee67fd1bbc2d359f3463112fa1b5c92e8da8f64f7 /ethchain/state_manager.go
parentcebf4e3697dcd20e290ff56ad6e5dfca2059c063 (diff)
downloadgo-tangerine-c734dde982c4ce778afa074e94efb09e552dbd84.tar
go-tangerine-c734dde982c4ce778afa074e94efb09e552dbd84.tar.gz
go-tangerine-c734dde982c4ce778afa074e94efb09e552dbd84.tar.bz2
go-tangerine-c734dde982c4ce778afa074e94efb09e552dbd84.tar.lz
go-tangerine-c734dde982c4ce778afa074e94efb09e552dbd84.tar.xz
go-tangerine-c734dde982c4ce778afa074e94efb09e552dbd84.tar.zst
go-tangerine-c734dde982c4ce778afa074e94efb09e552dbd84.zip
comments & refactor
Diffstat (limited to 'ethchain/state_manager.go')
-rw-r--r--ethchain/state_manager.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go
index 576afa8d3..c68d5e001 100644
--- a/ethchain/state_manager.go
+++ b/ethchain/state_manager.go
@@ -124,6 +124,9 @@ done:
}
}
+ // Notify all subscribers
+ self.Ethereum.Reactor().Post("newTx:post", tx)
+
txGas.Sub(txGas, st.gas)
accumelative := new(big.Int).Set(totalUsedGas.Add(totalUsedGas, txGas))
receipt := &Receipt{tx, ethutil.CopyBytes(state.Root().([]byte)), accumelative}
@@ -158,7 +161,6 @@ func (sm *StateManager) ProcessBlock(state *State, parent, block *Block, dontRea
hash := block.Hash()
if sm.bc.HasBlock(hash) {
- //fmt.Println("[STATE] We already have this block, ignoring")
return nil
}