Fix limits for Transaction (#800)

In prevPRr I set them too high, also typos in comments were fixed.
This commit is contained in:
Alexey Miroshkin 2018-03-16 23:23:10 +01:00 committed by Ignotus Peverell
parent c96838d54d
commit 1b3541245a
2 changed files with 5 additions and 5 deletions

View file

@ -88,13 +88,13 @@ pub const MAX_BLOCK_WEIGHT: usize = 80_000;
/// Hundreds of inputs + 1 output might be slow to validate (issue#258) /// 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 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; 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 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; pub const MAX_TX_KERNELS: u64 = 2048;
/// Whether a block exceeds the maximum acceptable weight /// Whether a block exceeds the maximum acceptable weight

View file

@ -91,10 +91,10 @@ where
} }
/// Maixmum peeks for a Merkle proof /// 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 /// Maixmum path for a Merkle proof
pub const MAX_PATH: u64 = 300_000; pub const MAX_PATH: u64 = 100;
/// A Merkle proof. /// A Merkle proof.
/// Proves inclusion of an output (node) in the output MMR. /// Proves inclusion of an output (node) in the output MMR.