diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-27 01:39:05 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-27 03:08:35 +0800 |
commit | e235b57234a68a8a39cfe7691a1825d8c6bb3443 (patch) | |
tree | a9531d9e14c15abd72625a98a21a9b988dc32319 /core/block_processor.go | |
parent | a1c830cd3c53bce7748d97e3f99fe6a90d526adb (diff) | |
download | go-tangerine-e235b57234a68a8a39cfe7691a1825d8c6bb3443.tar go-tangerine-e235b57234a68a8a39cfe7691a1825d8c6bb3443.tar.gz go-tangerine-e235b57234a68a8a39cfe7691a1825d8c6bb3443.tar.bz2 go-tangerine-e235b57234a68a8a39cfe7691a1825d8c6bb3443.tar.lz go-tangerine-e235b57234a68a8a39cfe7691a1825d8c6bb3443.tar.xz go-tangerine-e235b57234a68a8a39cfe7691a1825d8c6bb3443.tar.zst go-tangerine-e235b57234a68a8a39cfe7691a1825d8c6bb3443.zip |
Fixed consensus issue for refunding
* Refund should _always_ go to the origin
Diffstat (limited to 'core/block_processor.go')
-rw-r--r-- | core/block_processor.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/block_processor.go b/core/block_processor.go index f66d158b2..7eaeb5be0 100644 --- a/core/block_processor.go +++ b/core/block_processor.go @@ -48,9 +48,8 @@ type BlockProcessor struct { func NewBlockProcessor(db ethutil.Database, txpool *TxPool, chainManager *ChainManager, eventMux *event.TypeMux) *BlockProcessor { sm := &BlockProcessor{ - db: db, - mem: make(map[string]*big.Int), - //Pow: ðash.Ethash{}, + db: db, + mem: make(map[string]*big.Int), Pow: ezp.New(), bc: chainManager, eventMux: eventMux, @@ -100,7 +99,8 @@ func (self *BlockProcessor) ApplyTransaction(coinbase *state.StateObject, stated // Notify all subscribers if !transientProcess { go self.eventMux.Post(TxPostEvent{tx}) - go self.eventMux.Post(statedb.Logs()) + logs := statedb.Logs() + go self.eventMux.Post(logs) } return receipt, txGas, err |