From 1b3541245a10ef8dc907e84dd87245d478661db9 Mon Sep 17 00:00:00 2001 From: Alexey Miroshkin Date: Fri, 16 Mar 2018 23:23:10 +0100 Subject: [PATCH] Fix limits for Transaction (#800) In prevPRr I set them too high, also typos in comments were fixed. --- core/src/consensus.rs | 6 +++--- core/src/core/pmmr.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/consensus.rs b/core/src/consensus.rs index 0b29b365..74c12ecd 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 0b5cfc62..56169499 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.