Increase legacy chain limit to 100,000 (#6053)

This commit is contained in:
teor 2023-02-01 06:36:59 +10:00 committed by GitHub
parent 9b1d26538a
commit f3eaa040be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ pub const DATABASE_FORMAT_VERSION: u32 = 25;
/// before we assume we are on a pre-NU5 legacy chain.
///
/// Zebra usually only has to check back a few blocks, but on testnet it can be a long time between v5 transactions.
pub const MAX_LEGACY_CHAIN_BLOCKS: usize = 10_000;
pub const MAX_LEGACY_CHAIN_BLOCKS: usize = 100_000;
/// The maximum number of block hashes allowed in `getblocks` responses in the Zcash network protocol.
pub const MAX_FIND_BLOCK_HASHES_RESULTS: u32 = 500;