use of org.hyperledger.besu.config.TransitionsConfigOptions in project besu by hyperledger.
the class QbftForksSchedulesFactoryTest method createGenesisConfig.
@Override
protected GenesisConfigOptions createGenesisConfig(final QbftConfigOptions configOptions, final ObjectNode... forks) {
final StubGenesisConfigOptions genesisConfigOptions = new StubGenesisConfigOptions();
genesisConfigOptions.qbftConfigOptions(configOptions);
genesisConfigOptions.transitions(new TransitionsConfigOptions(JsonUtil.objectNodeFromMap(Map.of("qbft", Arrays.asList(forks)))));
return genesisConfigOptions;
}
use of org.hyperledger.besu.config.TransitionsConfigOptions in project besu by hyperledger.
the class IbftForksSchedulesFactoryTest method createGenesisConfig.
@Override
protected GenesisConfigOptions createGenesisConfig(final BftConfigOptions configOptions, final ObjectNode... fork) {
final StubGenesisConfigOptions genesisConfigOptions = new StubGenesisConfigOptions();
genesisConfigOptions.bftConfigOptions(configOptions);
genesisConfigOptions.transitions(new TransitionsConfigOptions(JsonUtil.objectNodeFromMap(Map.of("ibft2", Arrays.asList(fork)))));
return genesisConfigOptions;
}
Aggregations