Skip to content

Commit 3ced248

Browse files
authored
Merge pull request #2623 from ProvableHQ/fix/max-certs
[Fix] Use correct cfg flag values
2 parents 932d459 + 69ac151 commit 3ced248

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

console/network/src/canary_v0.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ impl Network for CanaryV0 {
163163
const INCLUSION_FUNCTION_NAME: &'static str = MainnetV0::INCLUSION_FUNCTION_NAME;
164164
/// A list of (consensus_version, size) pairs indicating the maximum number of certificates in a batch.
165165
#[cfg(not(any(test, feature = "test")))]
166-
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 16), (ConsensusVersion::V3, 25)];
166+
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 100), (ConsensusVersion::V3, 100)];
167167
/// A list of (consensus_version, size) pairs indicating the maximum number of certificates in a batch.
168168
#[cfg(any(test, feature = "test"))]
169-
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 100), (ConsensusVersion::V3, 100)];
169+
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 25), (ConsensusVersion::V3, 25)];
170170
/// The network name.
171171
const NAME: &'static str = "Aleo Canary (v0)";
172172

console/network/src/testnet_v0.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ impl Network for TestnetV0 {
163163
const INCLUSION_FUNCTION_NAME: &'static str = MainnetV0::INCLUSION_FUNCTION_NAME;
164164
/// A list of (consensus_version, size) pairs indicating the maximum number of certificates in a batch.
165165
#[cfg(not(any(test, feature = "test")))]
166-
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 16), (ConsensusVersion::V3, 25)];
166+
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 100), (ConsensusVersion::V3, 100)];
167167
/// A list of (consensus_version, size) pairs indicating the maximum number of certificates in a batch.
168168
#[cfg(any(test, feature = "test"))]
169-
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 100), (ConsensusVersion::V3, 100)];
169+
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 25), (ConsensusVersion::V3, 25)];
170170
/// The network name.
171171
const NAME: &'static str = "Aleo Testnet (v0)";
172172

0 commit comments

Comments
 (0)