Skip to content

Commit

Permalink
fix: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkAfCod committed Jan 19, 2024
1 parent 398222d commit dad5d29
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,8 @@ public void shouldAcceptZeroGasPriceFrontierTxsWhenMinGasPriceIsZeroAndLondonWit
final boolean noLocalPriority) {
transactionPool = createTransactionPool(b -> b.noLocalPriority(noLocalPriority));
when(miningParameters.getMinTransactionGasPrice()).thenReturn(Wei.ZERO);
when(protocolSpec.getFeeMarket()).thenReturn(FeeMarket.london(0, Optional.of(Wei.ZERO)));
when(protocolSpec.getFeeMarket())
.thenReturn(FeeMarket.london(0, Optional.of(Wei.ZERO), Optional.empty()));
whenBlockBaseFeeIs(Wei.ZERO);

final Transaction frontierTransaction = createFrontierTransaction(0, Wei.ZERO);
Expand All @@ -1024,7 +1025,8 @@ public void shouldAcceptZeroGasPrice1559TxsWhenMinGasPriceIsZeroAndLondonWithZer
final boolean noLocalPriority) {
transactionPool = createTransactionPool(b -> b.noLocalPriority(noLocalPriority));
when(miningParameters.getMinTransactionGasPrice()).thenReturn(Wei.ZERO);
when(protocolSpec.getFeeMarket()).thenReturn(FeeMarket.london(0, Optional.of(Wei.ZERO)));
when(protocolSpec.getFeeMarket())
.thenReturn(FeeMarket.london(0, Optional.of(Wei.ZERO), Optional.empty()));
whenBlockBaseFeeIs(Wei.ZERO);

final Transaction transaction = createTransaction(0, Wei.ZERO);
Expand Down Expand Up @@ -1321,7 +1323,8 @@ protected int add1559TxAndGetPendingTxsCount(
final boolean isLocal,
final boolean hasPriority) {
when(miningParameters.getMinTransactionGasPrice()).thenReturn(minGasPrice);
when(protocolSpec.getFeeMarket()).thenReturn(FeeMarket.london(0, Optional.of(genesisBaseFee)));
when(protocolSpec.getFeeMarket())
.thenReturn(FeeMarket.london(0, Optional.of(genesisBaseFee), Optional.empty()));
whenBlockBaseFeeIs(lastBlockBaseFee);

final Transaction transaction = createTransaction(0, txMaxFeePerGas);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected ExecutionContextTestFixture createExecutionContextTestFixture() {

@Override
protected FeeMarket getFeeMarket() {
return FeeMarket.london(0L, Optional.of(BASE_FEE_FLOOR));
return FeeMarket.london(0L, Optional.of(BASE_FEE_FLOOR), Optional.empty());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected ExecutionContextTestFixture createExecutionContextTestFixture() {

@Override
protected FeeMarket getFeeMarket() {
return FeeMarket.london(0L, Optional.of(BASE_FEE_FLOOR));
return FeeMarket.london(0L, Optional.of(BASE_FEE_FLOOR), Optional.empty());
}

@Override
Expand Down

0 comments on commit dad5d29

Please sign in to comment.