@ -66,6 +66,7 @@ public class StubGenesisConfigOptions implements GenesisConfigOptions, Cloneable
private OptionalLong thanosBlockNumber = OptionalLong . empty ( ) ;
private OptionalLong thanosBlockNumber = OptionalLong . empty ( ) ;
private OptionalLong magnetoBlockNumber = OptionalLong . empty ( ) ;
private OptionalLong magnetoBlockNumber = OptionalLong . empty ( ) ;
private OptionalLong mystiqueBlockNumber = OptionalLong . empty ( ) ;
private OptionalLong mystiqueBlockNumber = OptionalLong . empty ( ) ;
private OptionalLong spiralBlockNumber = OptionalLong . empty ( ) ;
private Optional < BigInteger > chainId = Optional . empty ( ) ;
private Optional < BigInteger > chainId = Optional . empty ( ) ;
private OptionalInt contractSizeLimit = OptionalInt . empty ( ) ;
private OptionalInt contractSizeLimit = OptionalInt . empty ( ) ;
private OptionalInt stackSizeLimit = OptionalInt . empty ( ) ;
private OptionalInt stackSizeLimit = OptionalInt . empty ( ) ;
@ -316,6 +317,11 @@ public class StubGenesisConfigOptions implements GenesisConfigOptions, Cloneable
return mystiqueBlockNumber ;
return mystiqueBlockNumber ;
}
}
@Override
public OptionalLong getSpiralBlockNumber ( ) {
return spiralBlockNumber ;
}
@Override
@Override
public OptionalInt getContractSizeLimit ( ) {
public OptionalInt getContractSizeLimit ( ) {
return contractSizeLimit ;
return contractSizeLimit ;
@ -374,6 +380,7 @@ public class StubGenesisConfigOptions implements GenesisConfigOptions, Cloneable
getThanosBlockNumber ( ) . ifPresent ( l - > builder . put ( "thanosBlock" , l ) ) ;
getThanosBlockNumber ( ) . ifPresent ( l - > builder . put ( "thanosBlock" , l ) ) ;
getMagnetoBlockNumber ( ) . ifPresent ( l - > builder . put ( "magnetoBlock" , l ) ) ;
getMagnetoBlockNumber ( ) . ifPresent ( l - > builder . put ( "magnetoBlock" , l ) ) ;
getMystiqueBlockNumber ( ) . ifPresent ( l - > builder . put ( "mystiqueBlock" , l ) ) ;
getMystiqueBlockNumber ( ) . ifPresent ( l - > builder . put ( "mystiqueBlock" , l ) ) ;
getSpiralBlockNumber ( ) . ifPresent ( l - > builder . put ( "spiralBlock" , l ) ) ;
getContractSizeLimit ( ) . ifPresent ( l - > builder . put ( "contractSizeLimit" , l ) ) ;
getContractSizeLimit ( ) . ifPresent ( l - > builder . put ( "contractSizeLimit" , l ) ) ;
getEvmStackSize ( ) . ifPresent ( l - > builder . put ( "evmStackSize" , l ) ) ;
getEvmStackSize ( ) . ifPresent ( l - > builder . put ( "evmStackSize" , l ) ) ;
@ -800,6 +807,17 @@ public class StubGenesisConfigOptions implements GenesisConfigOptions, Cloneable
return this ;
return this ;
}
}
/ * *
* Spiral stub genesis config options .
*
* @param blockNumber the block number
* @return the stub genesis config options
* /
public StubGenesisConfigOptions spiral ( final long blockNumber ) {
spiralBlockNumber = OptionalLong . of ( blockNumber ) ;
return this ;
}
/ * *
/ * *
* Chain id stub genesis config options .
* Chain id stub genesis config options .
*
*