Set TransactionGasCalculator in ETC specs (#2746)

Signed-off-by: Diego López León <dieguitoll@gmail.com>
pull/2767/head
Diego López León 3 years ago committed by GitHub
parent a2fd2147cd
commit 007beac23b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/ClassicProtocolSpecs.java

@ -213,6 +213,7 @@ public class ClassicProtocolSpecs {
ecip1017EraRounds,
quorumCompatibilityMode)
.gasCalculator(IstanbulGasCalculator::new)
.transactionGasCalculator(new IstanbulTransactionGasCalculator())
.evmBuilder(
gasCalculator ->
MainnetEvmRegistries.istanbul(gasCalculator, chainId.orElse(BigInteger.ZERO)))
@ -308,6 +309,7 @@ public class ClassicProtocolSpecs {
ecip1017EraRounds,
quorumCompatibilityMode)
.gasCalculator(BerlinGasCalculator::new)
.transactionGasCalculator(new BerlinTransactionGasCalculator())
.transactionValidatorBuilder(
transactionGasCalculator ->
new MainnetTransactionValidator(

Loading…
Cancel
Save