Skip to content

Commit

Permalink
Deafult batch verify signatures to on (#4116)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajsutton authored Jun 28, 2021
1 parent 59fceae commit d6933e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public class P2POptions {
description = "If true, turn on batch verification for gossiped attestation signatures",
hidden = true,
arity = "0..1")
private boolean batchVerifyAttestationSignatures = false;
private boolean batchVerifyAttestationSignatures = true;

private int getP2pLowerBound() {
if (p2pLowerBound > p2pUpperBound) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,12 @@ private TekuConfiguration.Builder expectedConfigurationBuilder() {
.dataStorageFrequency(VersionedDatabaseFactory.DEFAULT_STORAGE_FREQUENCY)
.dataStorageCreateDbVersion(DatabaseVersion.DEFAULT_VERSION))
.data(b -> b.dataBasePath(dataPath))
.p2p(b -> b.targetSubnetSubscriberCount(2).peerRateLimit(500).peerRequestLimit(50))
.p2p(
b ->
b.targetSubnetSubscriberCount(2)
.peerRateLimit(500)
.peerRequestLimit(50)
.batchVerifyAttestationSignatures(true))
.discovery(
d -> d.isDiscoveryEnabled(false).minPeers(64).maxPeers(74).minRandomlySelectedPeers(12))
.network(
Expand Down

0 comments on commit d6933e1

Please sign in to comment.