Skip to content

Commit

Permalink
Add debug print in state processor
Browse files Browse the repository at this point in the history
  • Loading branch information
jdowning100 committed Jun 4, 2024
1 parent 786a0c2 commit 106877b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/state_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ func (p *StateProcessor) Process(block *types.WorkObject) (types.Receipts, []*ty
etxAvailable = true
}
if (etxAvailable && totalEtxGas < minimumEtxGas) || totalEtxGas > maximumEtxGas {
p.logger.Errorf("prevInboundEtxs: %d, oldestIndex: %d, etxHash: %s", len(prevInboundEtxs), oldestIndex.Int64(), etx.Hash().Hex())
return nil, nil, nil, nil, 0, fmt.Errorf("total gas used by ETXs %d is not within the range %d to %d", totalEtxGas, minimumEtxGas, maximumEtxGas)
}

Expand Down

0 comments on commit 106877b

Please sign in to comment.