Search in sources :

Example 1 with TransitionsConfigOptions

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;
}
Also used : TransitionsConfigOptions(org.hyperledger.besu.config.TransitionsConfigOptions) StubGenesisConfigOptions(org.hyperledger.besu.config.StubGenesisConfigOptions)

Example 2 with TransitionsConfigOptions

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;
}
Also used : TransitionsConfigOptions(org.hyperledger.besu.config.TransitionsConfigOptions) StubGenesisConfigOptions(org.hyperledger.besu.config.StubGenesisConfigOptions)

Aggregations

StubGenesisConfigOptions (org.hyperledger.besu.config.StubGenesisConfigOptions)2 TransitionsConfigOptions (org.hyperledger.besu.config.TransitionsConfigOptions)2