diff --git a/core/src/consensus.rs b/core/src/consensus.rs index 0b29b3651..74c12ecda 100644 --- a/core/src/consensus.rs +++ b/core/src/consensus.rs @@ -88,13 +88,13 @@ pub const MAX_BLOCK_WEIGHT: usize = 80_000; /// Hundreds of inputs + 1 output might be slow to validate (issue#258) pub const MAX_BLOCK_INPUTS: usize = 300_000; // soft fork down when too_high -/// Maixmum inputs for a transaction +/// Maximum inputs for a transaction pub const MAX_TX_INPUTS: u64 = 500; -/// Maixmum outputs for a transaction +/// Maximum outputs for a transaction pub const MAX_TX_OUTPUTS: u64 = 500; // wallet uses 500 as max -/// Maixmum kernels for a transaction +/// Maximum kernels for a transaction pub const MAX_TX_KERNELS: u64 = 2048; /// Whether a block exceeds the maximum acceptable weight diff --git a/core/src/core/pmmr.rs b/core/src/core/pmmr.rs index 0b5cfc62a..561694995 100644 --- a/core/src/core/pmmr.rs +++ b/core/src/core/pmmr.rs @@ -91,10 +91,10 @@ where } /// Maixmum peeks for a Merkle proof -pub const MAX_PEAKS: u64 = 300_000; +pub const MAX_PEAKS: u64 = 100; /// Maixmum path for a Merkle proof -pub const MAX_PATH: u64 = 300_000; +pub const MAX_PATH: u64 = 100; /// A Merkle proof. /// Proves inclusion of an output (node) in the output MMR.