mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Fix limits for Transaction (#800)
In prevPRr I set them too high, also typos in comments were fixed.
This commit is contained in:
parent
c96838d54d
commit
1b3541245a
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue