Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable native encryption libraries by default #775

Merged
merged 6 commits into from
Apr 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static BesuNodeRunner instance() {

default void waitForFile(final Path dataDir, final String fileName) {
final File file = new File(dataDir.toFile(), fileName);
Awaitility.waitAtMost(30, TimeUnit.SECONDS)
Awaitility.waitAtMost(60, TimeUnit.SECONDS)
.until(
() -> {
try (final Stream<String> s = Files.lines(file.toPath())) {
Expand Down
4 changes: 2 additions & 2 deletions besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -860,13 +860,13 @@ void setBannedNodeIds(final List<String> values) {
names = {"--Xsecp256k1-native-enabled"},
description = "Path to PID file (optional)",
arity = "1")
private final Boolean nativeSecp256k1 = Boolean.FALSE;
private final Boolean nativeSecp256k1 = Boolean.TRUE;

@CommandLine.Option(
names = {"--Xaltbn128-native-enabled"},
description = "Path to PID file (optional)",
arity = "1")
private final Boolean nativeAltbn128 = Boolean.FALSE;
private final Boolean nativeAltbn128 = Boolean.TRUE;

private EthNetworkConfig ethNetworkConfig;
private JsonRpcConfiguration jsonRpcConfiguration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class SECP256K1 {

private static final Logger LOG = LogManager.getLogger();

private static boolean useNative = false;
private static boolean useNative = true;

public static final String ALGORITHM = "ECDSA";
public static final String CURVE_NAME = "secp256k1";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

public class AltBN128PairingPrecompiledContract extends AbstractPrecompiledContract {

static boolean useNative = false;
static boolean useNative = true;

private static final Logger LOG = LogManager.getLogger();

Expand Down