@ -99,6 +99,8 @@ public class BesuNode implements NodeConfiguration, RunnableNode, AutoCloseable
private final boolean discoveryEnabled ;
private final List < URI > bootnodes = new ArrayList < > ( ) ;
private final boolean bootnodeEligible ;
private final boolean secp256k1Native ;
private final boolean altbn128Native ;
private Optional < String > genesisConfig = Optional . empty ( ) ;
private NodeRequests nodeRequests ;
private LoginRequestFactory loginRequestFactory ;
@ -125,14 +127,14 @@ public class BesuNode implements NodeConfiguration, RunnableNode, AutoCloseable
final boolean discoveryEnabled ,
final boolean bootnodeEligible ,
final boolean revertReasonEnabled ,
final boolean secp256k1Native ,
final boolean altbn128Native ,
final List < String > plugins ,
final List < String > extraCLIOptions ,
final List < String > staticNodes ,
final Optional < PrivacyParameters > privacyParameters ,
final Optional < String > runCommand )
throws IOException {
this . bootnodeEligible = bootnodeEligible ;
this . revertReasonEnabled = revertReasonEnabled ;
this . homeDirectory = dataPath . orElseGet ( BesuNode : : createTmpDataDirectory ) ;
keyfilePath . ifPresent (
path - > {
@ -154,6 +156,10 @@ public class BesuNode implements NodeConfiguration, RunnableNode, AutoCloseable
this . p2pEnabled = p2pEnabled ;
this . networkingConfiguration = networkingConfiguration ;
this . discoveryEnabled = discoveryEnabled ;
this . bootnodeEligible = bootnodeEligible ;
this . revertReasonEnabled = revertReasonEnabled ;
this . secp256k1Native = secp256k1Native ;
this . altbn128Native = altbn128Native ;
this . runCommand = runCommand ;
plugins . forEach (
pluginName - > {
@ -562,6 +568,14 @@ public class BesuNode implements NodeConfiguration, RunnableNode, AutoCloseable
return devMode ;
}
public boolean isSecp256k1Native ( ) {
return secp256k1Native ;
}
public boolean isAltbn128Native ( ) {
return altbn128Native ;
}
@Override
public boolean isDiscoveryEnabled ( ) {
return discoveryEnabled ;