aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain.go
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2018-11-22 17:00:16 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-11-22 17:00:16 +0800
commite0d091e0909fc94958a33608ae4dad0825482813 (patch)
treec525c9a5c3cb4539d71b3e51f9d9e8142dc3d90a /core/blockchain.go
parent070caec4bd72b1a958ece5f2b8fcc2bb92d44796 (diff)
downloadgo-tangerine-e0d091e0909fc94958a33608ae4dad0825482813.tar
go-tangerine-e0d091e0909fc94958a33608ae4dad0825482813.tar.gz
go-tangerine-e0d091e0909fc94958a33608ae4dad0825482813.tar.bz2
go-tangerine-e0d091e0909fc94958a33608ae4dad0825482813.tar.lz
go-tangerine-e0d091e0909fc94958a33608ae4dad0825482813.tar.xz
go-tangerine-e0d091e0909fc94958a33608ae4dad0825482813.tar.zst
go-tangerine-e0d091e0909fc94958a33608ae4dad0825482813.zip
core: better printout of receipts in bad block reports (#18156)
* core/blockchain: better printout of receipts in bad block reports * fix splleing
Diffstat (limited to 'core/blockchain.go')
-rw-r--r--core/blockchain.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index d173b2de2..4de7f007b 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -1469,8 +1469,10 @@ func (bc *BlockChain) reportBlock(block *types.Block, receipts types.Receipts, e
bc.addBadBlock(block)
var receiptString string
- for _, receipt := range receipts {
- receiptString += fmt.Sprintf("\t%v\n", receipt)
+ for i, receipt := range receipts {
+ receiptString += fmt.Sprintf("\t %d: cumulative: %v gas: %v contract: %v status: %v tx: %v logs: %v bloom: %x state: %x\n",
+ i, receipt.CumulativeGasUsed, receipt.GasUsed, receipt.ContractAddress.Hex(),
+ receipt.Status, receipt.TxHash.Hex(), receipt.Logs, receipt.Bloom, receipt.PostState)
}
log.Error(fmt.Sprintf(`
########## BAD BLOCK #########