update summarizeBadBlock (#858)

This commit is contained in:
HAOYUatHZ 2024-06-26 16:40:15 +08:00 committed by GitHub
parent a19bdff959
commit 360bc1ed5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2621,12 +2621,13 @@ func summarizeBadBlock(block *types.Block, receipts []*types.Receipt, config *pa
return fmt.Sprintf(` return fmt.Sprintf(`
########## BAD BLOCK ######### ########## BAD BLOCK #########
Block: %v (%#x) Block: %v (%#x)
ParentHash: %#x
Error: %v Error: %v
Platform: %v%v Platform: %v%v
Chain config: %#v Chain config: %#v
Receipts: %v Receipts: %v
############################## ##############################
`, block.Number(), block.Hash(), err, platform, vcs, config, receiptString) `, block.Number(), block.Hash(), block.ParentHash(), err, platform, vcs, config, receiptString)
} }
// InsertHeaderChain attempts to insert the given header chain in to the local // InsertHeaderChain attempts to insert the given header chain in to the local