Skip to content

Commit

Permalink
Merge pull request #2623 from ProvableHQ/fix/max-certs
Browse files Browse the repository at this point in the history
[Fix] Use correct cfg flag values
  • Loading branch information
vicsn authored Mar 3, 2025
2 parents 932d459 + 69ac151 commit 3ced248
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions console/network/src/canary_v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ impl Network for CanaryV0 {
const INCLUSION_FUNCTION_NAME: &'static str = MainnetV0::INCLUSION_FUNCTION_NAME;
/// A list of (consensus_version, size) pairs indicating the maximum number of certificates in a batch.
#[cfg(not(any(test, feature = "test")))]
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 16), (ConsensusVersion::V3, 25)];
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 100), (ConsensusVersion::V3, 100)];
/// A list of (consensus_version, size) pairs indicating the maximum number of certificates in a batch.
#[cfg(any(test, feature = "test"))]
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 100), (ConsensusVersion::V3, 100)];
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 25), (ConsensusVersion::V3, 25)];
/// The network name.
const NAME: &'static str = "Aleo Canary (v0)";

Expand Down
4 changes: 2 additions & 2 deletions console/network/src/testnet_v0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ impl Network for TestnetV0 {
const INCLUSION_FUNCTION_NAME: &'static str = MainnetV0::INCLUSION_FUNCTION_NAME;
/// A list of (consensus_version, size) pairs indicating the maximum number of certificates in a batch.
#[cfg(not(any(test, feature = "test")))]
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 16), (ConsensusVersion::V3, 25)];
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 100), (ConsensusVersion::V3, 100)];
/// A list of (consensus_version, size) pairs indicating the maximum number of certificates in a batch.
#[cfg(any(test, feature = "test"))]
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 100), (ConsensusVersion::V3, 100)];
const MAX_CERTIFICATES: [(ConsensusVersion, u16); 2] = [(ConsensusVersion::V1, 25), (ConsensusVersion::V3, 25)];
/// The network name.
const NAME: &'static str = "Aleo Testnet (v0)";

Expand Down

0 comments on commit 3ced248

Please sign in to comment.