aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_manager.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-07-05 02:40:23 +0800
committerzelig <viktor.tron@gmail.com>2014-07-05 02:40:23 +0800
commit44d0d6abd26bcaca0e1caecf798183b45fb2365a (patch)
treee147ba512e7a78b1a5e539f469a76617cc28c8ce /ethchain/state_manager.go
parent0c6f1c9c3aaba8e5a15ed50e90e65dd344afef8a (diff)
parent90eb4f1939f7b0389d5784b889cc0e5d2b3451f7 (diff)
downloaddexon-44d0d6abd26bcaca0e1caecf798183b45fb2365a.tar.gz
dexon-44d0d6abd26bcaca0e1caecf798183b45fb2365a.tar.zst
dexon-44d0d6abd26bcaca0e1caecf798183b45fb2365a.zip
Merge branch 'develop' of github.com:ethereum/eth-go into feature/ethutil-refactor
Diffstat (limited to 'ethchain/state_manager.go')
-rw-r--r--ethchain/state_manager.go15
1 files changed, 14 insertions, 1 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go
index 962f95b29..52a73beb8 100644
--- a/ethchain/state_manager.go
+++ b/ethchain/state_manager.go
@@ -182,11 +182,24 @@ func (sm *StateManager) Process(block *Block, dontReact bool) (err error) {
if err != nil {
if len(receipts) == len(block.Receipts()) {
for i, receipt := range block.Receipts() {
- statelogger.Debugf("diff (r) %v ~ %x <=> (c) %v ~ %x (%x)\n", receipt.CumulativeGasUsed, receipt.PostState[0:4], receipts[i].CumulativeGasUsed, receipts[i].PostState[0:4], receipt.Tx.Hash())
+ statelogger.Infof("diff (r) %v ~ %x <=> (c) %v ~ %x (%x)\n", receipt.CumulativeGasUsed, receipt.PostState[0:4], receipts[i].CumulativeGasUsed, receipts[i].PostState[0:4], receipt.Tx.Hash())
}
} else {
statelogger.Warnln("Unable to print receipt diff. Length didn't match", len(receipts), "for", len(block.Receipts()))
}
+ } else {
+ /*
+ for i, receipt := range receipts {
+ gu := new(big.Int)
+ if i != 0 {
+ gu.Sub(receipt.CumulativeGasUsed, receipts[i-1].CumulativeGasUsed)
+ } else {
+ gu.Set(receipt.CumulativeGasUsed)
+ }
+
+ statelogger.Infof("[r] %v ~ %x (%x)\n", gu, receipt.PostState[0:4], receipt.Tx.Hash())
+ }
+ */
}
}()