|
|
@ -263,13 +263,16 @@ public abstract class MainnetProtocolSpecs { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static ProtocolSpec<Void> constantinople( |
|
|
|
public static ProtocolSpec<Void> constantinople( |
|
|
|
final int chainId, final ProtocolSchedule<Void> protocolSchedule) { |
|
|
|
final int chainId, final ProtocolSchedule<Void> protocolSchedule) { |
|
|
|
|
|
|
|
return constantinopleDefinition(chainId).build(protocolSchedule); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static ProtocolSpecBuilder<Void> constantinopleDefinition(final int chainId) { |
|
|
|
return byzantiumDefinition(chainId) |
|
|
|
return byzantiumDefinition(chainId) |
|
|
|
.difficultyCalculator(MainnetDifficultyCalculators.CONSTANTINOPLE) |
|
|
|
.difficultyCalculator(MainnetDifficultyCalculators.CONSTANTINOPLE) |
|
|
|
.gasCalculator(ConstantinopleGasCalculator::new) |
|
|
|
.gasCalculator(ConstantinopleGasCalculator::new) |
|
|
|
.evmBuilder(MainnetEvmRegistries::constantinople) |
|
|
|
.evmBuilder(MainnetEvmRegistries::constantinople) |
|
|
|
.blockReward(CONSTANTINOPLE_BLOCK_REWARD) |
|
|
|
.blockReward(CONSTANTINOPLE_BLOCK_REWARD) |
|
|
|
.name("Constantinople") |
|
|
|
.name("Constantinople"); |
|
|
|
.build(protocolSchedule); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static TransactionReceipt frontierTransactionReceiptFactory( |
|
|
|
private static TransactionReceipt frontierTransactionReceiptFactory( |
|
|
|