Skip to content

Commit

Permalink
Fix null ref in processing stats (#7712)
Browse files Browse the repository at this point in the history
  • Loading branch information
benaadams authored Nov 4, 2024
1 parent 0d9af1a commit 458266e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void IThreadPoolWorkItem.Execute()
if (block is null) return;

Transaction[] txs = block.Transactions;
Address beneficiary = block.Header.GasBeneficiary;
Address beneficiary = block.Header.GasBeneficiary ?? Address.Zero;
Transaction lastTx = txs.Length > 0 ? txs[^1] : null;
bool isMev = false;
if (lastTx is not null && (lastTx.SenderAddress == beneficiary || _alternateMevPayees.Contains(lastTx.SenderAddress)))
Expand Down

0 comments on commit 458266e

Please sign in to comment.