|
|
@ -17,6 +17,7 @@ package org.hyperledger.besu.ethereum.mainnet; |
|
|
|
import static org.hyperledger.besu.ethereum.mainnet.requests.DepositRequestProcessor.DEFAULT_DEPOSIT_CONTRACT_ADDRESS; |
|
|
|
import static org.hyperledger.besu.ethereum.mainnet.requests.DepositRequestProcessor.DEFAULT_DEPOSIT_CONTRACT_ADDRESS; |
|
|
|
import static org.hyperledger.besu.ethereum.mainnet.requests.MainnetRequestsValidator.pragueRequestsProcessors; |
|
|
|
import static org.hyperledger.besu.ethereum.mainnet.requests.MainnetRequestsValidator.pragueRequestsProcessors; |
|
|
|
import static org.hyperledger.besu.ethereum.mainnet.requests.MainnetRequestsValidator.pragueRequestsValidator; |
|
|
|
import static org.hyperledger.besu.ethereum.mainnet.requests.MainnetRequestsValidator.pragueRequestsValidator; |
|
|
|
|
|
|
|
import static org.hyperledger.besu.ethereum.mainnet.requests.WithdrawalRequestProcessor.DEFAULT_WITHDRAWAL_REQUEST_CONTRACT_ADDRESS; |
|
|
|
|
|
|
|
|
|
|
|
import org.hyperledger.besu.config.GenesisConfigOptions; |
|
|
|
import org.hyperledger.besu.config.GenesisConfigOptions; |
|
|
|
import org.hyperledger.besu.config.PowAlgorithm; |
|
|
|
import org.hyperledger.besu.config.PowAlgorithm; |
|
|
@ -766,6 +767,10 @@ public abstract class MainnetProtocolSpecs { |
|
|
|
final boolean isParallelTxProcessingEnabled, |
|
|
|
final boolean isParallelTxProcessingEnabled, |
|
|
|
final MetricsSystem metricsSystem) { |
|
|
|
final MetricsSystem metricsSystem) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final Address withdrawalRequestContractAddress = |
|
|
|
|
|
|
|
genesisConfigOptions |
|
|
|
|
|
|
|
.getWithdrawalRequestContractAddress() |
|
|
|
|
|
|
|
.orElse(DEFAULT_WITHDRAWAL_REQUEST_CONTRACT_ADDRESS); |
|
|
|
final Address depositContractAddress = |
|
|
|
final Address depositContractAddress = |
|
|
|
genesisConfigOptions.getDepositContractAddress().orElse(DEFAULT_DEPOSIT_CONTRACT_ADDRESS); |
|
|
|
genesisConfigOptions.getDepositContractAddress().orElse(DEFAULT_DEPOSIT_CONTRACT_ADDRESS); |
|
|
|
|
|
|
|
|
|
|
@ -791,7 +796,8 @@ public abstract class MainnetProtocolSpecs { |
|
|
|
// EIP-7002 Withdrawals / EIP-6610 Deposits / EIP-7685 Requests
|
|
|
|
// EIP-7002 Withdrawals / EIP-6610 Deposits / EIP-7685 Requests
|
|
|
|
.requestsValidator(pragueRequestsValidator(depositContractAddress)) |
|
|
|
.requestsValidator(pragueRequestsValidator(depositContractAddress)) |
|
|
|
// EIP-7002 Withdrawals / EIP-6610 Deposits / EIP-7685 Requests
|
|
|
|
// EIP-7002 Withdrawals / EIP-6610 Deposits / EIP-7685 Requests
|
|
|
|
.requestProcessorCoordinator(pragueRequestsProcessors(depositContractAddress)) |
|
|
|
.requestProcessorCoordinator( |
|
|
|
|
|
|
|
pragueRequestsProcessors(withdrawalRequestContractAddress, depositContractAddress)) |
|
|
|
|
|
|
|
|
|
|
|
// change to accept EIP-7702 transactions
|
|
|
|
// change to accept EIP-7702 transactions
|
|
|
|
.transactionValidatorFactoryBuilder( |
|
|
|
.transactionValidatorFactoryBuilder( |
|
|
|