Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
allow miner to continue if there's enough room for one tx
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Jul 28, 2022
1 parent fd4d2ed commit a61b1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chains/ethereum/ethereum/src/miner/miner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export default class Miner extends Emittery<{
// notice: when `maxTransactions` is `-1` (AKA infinite), `numTransactions === maxTransactions`
// will always return false, so this comparison works out fine.
if (
blockGasLeft <= Params.TRANSACTION_GAS ||
blockGasLeft < Params.TRANSACTION_GAS ||
numTransactions === maxTransactions
) {
break;
Expand Down

0 comments on commit a61b1bf

Please sign in to comment.