@ -66,7 +66,7 @@ public class PantheonNodeFactory {
public PantheonNode createMinerNode ( final String name ) throws IOException {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. n ame( name )
. miningEnabled ( )
. jsonRpcEnabled ( )
. webSocketEnabled ( )
@ -78,10 +78,10 @@ public class PantheonNodeFactory {
throws IOException {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. n ame( name )
. miningEnabled ( )
. jsonRpcEnabled ( )
. setK eyFilePath( keyFilePath )
. k eyFilePath( keyFilePath )
. enablePrivateTransactions ( privacyParameters )
. webSocketEnabled ( )
. build ( ) ) ;
@ -92,9 +92,9 @@ public class PantheonNodeFactory {
throws IOException {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. n ame( name )
. jsonRpcEnabled ( )
. setK eyFilePath( keyFilePath )
. k eyFilePath( keyFilePath )
. enablePrivateTransactions ( privacyParameters )
. webSocketEnabled ( )
. build ( ) ) ;
@ -103,7 +103,7 @@ public class PantheonNodeFactory {
public PantheonNode createArchiveNode ( final String name ) throws IOException {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. n ame( name )
. jsonRpcEnabled ( )
. webSocketEnabled ( )
. build ( ) ) ;
@ -112,7 +112,7 @@ public class PantheonNodeFactory {
public Node createArchiveNodeThatMustNotBeTheBootnode ( final String name ) throws IOException {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. n ame( name )
. jsonRpcEnabled ( )
. webSocketEnabled ( )
. bootnodeEligible ( false )
@ -123,10 +123,10 @@ public class PantheonNodeFactory {
throws IOException {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. setJ sonRpcConfiguration( jsonRpcConfigWithAdmin ( ) )
. n ame( name )
. j sonRpcConfiguration( jsonRpcConfigWithAdmin ( ) )
. webSocketEnabled ( )
. setD iscoveryEnabled( false )
. d iscoveryEnabled( false )
. build ( ) ) ;
}
@ -134,7 +134,7 @@ public class PantheonNodeFactory {
throws IOException , URISyntaxException {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. n ame( name )
. jsonRpcEnabled ( )
. jsonRpcAuthenticationEnabled ( )
. webSocketEnabled ( )
@ -145,7 +145,7 @@ public class PantheonNodeFactory {
throws IOException , URISyntaxException {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. n ame( name )
. webSocketEnabled ( )
. webSocketAuthenticationEnabled ( )
. build ( ) ) ;
@ -154,23 +154,23 @@ public class PantheonNodeFactory {
public PantheonNode createNodeWithP2pDisabled ( final String name ) throws IOException {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. setP 2pEnabled( false )
. setJ sonRpcConfiguration( createJsonRpcEnabledConfig ( ) )
. n ame( name )
. p 2pEnabled( false )
. j sonRpcConfiguration( createJsonRpcEnabledConfig ( ) )
. build ( ) ) ;
}
public PantheonNode createNodeWithP2pDisabledAndAdmin ( final String name ) throws IOException {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. setP 2pEnabled( false )
. setJ sonRpcConfiguration( jsonRpcConfigWithAdmin ( ) )
. n ame( name )
. p 2pEnabled( false )
. j sonRpcConfiguration( jsonRpcConfigWithAdmin ( ) )
. build ( ) ) ;
}
public PantheonNode createArchiveNodeWithRpcDisabled ( final String name ) throws IOException {
return create ( new PantheonFactoryConfigurationBuilder ( ) . setN ame( name ) . build ( ) ) ;
return create ( new PantheonFactoryConfigurationBuilder ( ) . n ame( name ) . build ( ) ) ;
}
public PantheonNode createArchiveNodeWithRpcApis (
@ -182,38 +182,38 @@ public class PantheonNodeFactory {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. setJ sonRpcConfiguration( jsonRpcConfig )
. setW ebSocketConfiguration( webSocketConfig )
. n ame( name )
. j sonRpcConfiguration( jsonRpcConfig )
. w ebSocketConfiguration( webSocketConfig )
. build ( ) ) ;
}
public PantheonNode createNodeWithNoDiscovery ( final String name ) throws IOException {
return create (
new PantheonFactoryConfigurationBuilder ( ) . setN ame( name ) . setD iscoveryEnabled( false ) . build ( ) ) ;
new PantheonFactoryConfigurationBuilder ( ) . n ame( name ) . d iscoveryEnabled( false ) . build ( ) ) ;
}
public PantheonNode createCliqueNode ( final String name ) throws IOException {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. n ame( name )
. miningEnabled ( )
. setJ sonRpcConfiguration( createJsonRpcConfigWithClique ( ) )
. setW ebSocketConfiguration( createWebSocketEnabledConfig ( ) )
. setD evMode( false )
. setG enesisConfigProvider( this : : createCliqueGenesisConfig )
. j sonRpcConfiguration( createJsonRpcConfigWithClique ( ) )
. w ebSocketConfiguration( createWebSocketEnabledConfig ( ) )
. d evMode( false )
. g enesisConfigProvider( this : : createCliqueGenesisConfig )
. build ( ) ) ;
}
public PantheonNode createIbftNode ( final String name ) throws IOException {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. n ame( name )
. miningEnabled ( )
. setJ sonRpcConfiguration( createJsonRpcConfigWithIbft ( ) )
. setW ebSocketConfiguration( createWebSocketEnabledConfig ( ) )
. setD evMode( false )
. setG enesisConfigProvider( this : : createIbftGenesisConfig )
. j sonRpcConfiguration( createJsonRpcConfigWithIbft ( ) )
. w ebSocketConfiguration( createWebSocketEnabledConfig ( ) )
. d evMode( false )
. g enesisConfigProvider( this : : createIbftGenesisConfig )
. build ( ) ) ;
}
@ -222,11 +222,11 @@ public class PantheonNodeFactory {
final String genesisFile = readGenesisFile ( genesisPath ) ;
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. n ame( name )
. jsonRpcEnabled ( )
. webSocketEnabled ( )
. setG enesisConfigProvider( ( a ) - > Optional . of ( genesisFile ) )
. setD evMode( false )
. g enesisConfigProvider( ( a ) - > Optional . of ( genesisFile ) )
. d evMode( false )
. bootnodeEligible ( canBeBootnode )
. build ( ) ) ;
}
@ -236,12 +236,12 @@ public class PantheonNodeFactory {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. n ame( name )
. miningEnabled ( )
. setJ sonRpcConfiguration( createJsonRpcConfigWithClique ( ) )
. setW ebSocketConfiguration( createWebSocketEnabledConfig ( ) )
. setD evMode( false )
. setG enesisConfigProvider(
. j sonRpcConfiguration( createJsonRpcConfigWithClique ( ) )
. w ebSocketConfiguration( createWebSocketEnabledConfig ( ) )
. d evMode( false )
. g enesisConfigProvider(
nodes - >
createGenesisConfigForValidators (
asList ( validators ) , nodes , this : : createCliqueGenesisConfig ) )
@ -253,12 +253,12 @@ public class PantheonNodeFactory {
return create (
new PantheonFactoryConfigurationBuilder ( )
. setN ame( name )
. n ame( name )
. miningEnabled ( )
. setJ sonRpcConfiguration( createJsonRpcConfigWithIbft ( ) )
. setW ebSocketConfiguration( createWebSocketEnabledConfig ( ) )
. setD evMode( false )
. setG enesisConfigProvider(
. j sonRpcConfiguration( createJsonRpcConfigWithIbft ( ) )
. w ebSocketConfiguration( createWebSocketEnabledConfig ( ) )
. d evMode( false )
. g enesisConfigProvider(
nodes - >
createGenesisConfigForValidators (
asList ( validators ) , nodes , this : : createIbftGenesisConfig ) )