Skip to content

Commit

Permalink
Merge branch 'feat/brioche' of https://github.com/wemixarchive/go-wemix
Browse files Browse the repository at this point in the history
… into feat/brioche_devnet
  • Loading branch information
egonspace committed May 29, 2024
2 parents 6c66699 + c5b7e5e commit 2d63519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
// Finalize the block, applying any consensus engine specific extras (e.g. block rewards)
err := p.engine.Finalize(p.bc, header, statedb, block.Transactions(), block.Uncles())
if err != nil {
return nil, nil, 0, err
return receipts, nil, 0, err
}

header.Fees = fees
if block.Hash() != header.Hash() {
return nil, nil, 0, fmt.Errorf("remote block hash is different from being processed one locally (remote=%v, local=%v)", block.Header().Hash(), header.Hash())
return receipts, nil, 0, fmt.Errorf("remote block hash is different from being processed one locally (remote=%v, local=%v)", block.Header().Hash(), header.Hash())
}

return receipts, allLogs, *usedGas, nil
Expand Down

0 comments on commit 2d63519

Please sign in to comment.