diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-20 09:21:13 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-20 09:21:13 +0800 |
commit | 1508a23a6fe3cc50f718bfd6c62caae056534c09 (patch) | |
tree | 78853077f6b961bf27c5bdf74673c255e96aba1d /core/block_manager.go | |
parent | f5b8f3d41b533d51eb81e895ed9b6aa31d7aaaef (diff) | |
download | go-tangerine-1508a23a6fe3cc50f718bfd6c62caae056534c09.tar.gz go-tangerine-1508a23a6fe3cc50f718bfd6c62caae056534c09.tar.zst go-tangerine-1508a23a6fe3cc50f718bfd6c62caae056534c09.zip |
Minor updates on gas and removed/refactored old code.
Diffstat (limited to 'core/block_manager.go')
-rw-r--r-- | core/block_manager.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/block_manager.go b/core/block_manager.go index 20285f8f0..2567e39c4 100644 --- a/core/block_manager.go +++ b/core/block_manager.go @@ -142,6 +142,7 @@ done: receipt := types.NewReceipt(state.Root(), cumulative) receipt.SetLogs(state.Logs()) receipt.Bloom = types.CreateBloom(types.Receipts{receipt}) + chainlogger.Debugln(receipt) // Notify all subscribers if !transientProcess { @@ -214,7 +215,8 @@ func (sm *BlockManager) ProcessWithParent(block, parent *types.Block) (td *big.I receiptSha := types.DeriveSha(receipts) if bytes.Compare(receiptSha, block.ReceiptSha) != 0 { - chainlogger.Debugln(receipts) + //chainlogger.Debugf("validating receipt root. received=%x got=%x", block.ReceiptSha, receiptSha) + fmt.Printf("%x\n", ethutil.Encode(receipts)) err = fmt.Errorf("validating receipt root. received=%x got=%x", block.ReceiptSha, receiptSha) return } |