mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 22:56:43 +00:00
Merge 6c2593f685 into e05d35e6e0
This commit is contained in:
commit
732fd253f9
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ func (v *BlockValidator) ValidateBlock(block *types.Block) error {
|
|||
func (v *BlockValidator) ValidateState(block, parent *types.Block, statedb *state.StateDB, receipts types.Receipts, usedGas *big.Int) (err error) {
|
||||
header := block.Header()
|
||||
if block.GasUsed().Cmp(usedGas) != 0 {
|
||||
return ValidationError(fmt.Sprintf("gas used error (%v / %v)", block.GasUsed(), usedGas))
|
||||
return ValidationError(fmt.Sprintf("gas used error (%v / %v : %v)", block.GasUsed(), usedGas, receipts))
|
||||
}
|
||||
// Validate the received block's bloom with the one derived from the generated receipts.
|
||||
// For valid blocks this should always validate to true.
|
||||
|
|
|
|||
Loading…
Reference in a new issue