Skip to content

Commit

Permalink
fix: increase uncle limit (#138)
Browse files Browse the repository at this point in the history
Increase the uncle age limit
  • Loading branch information
stringhandler authored Nov 7, 2024
1 parent eeff2f8 commit 733800f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sharechain/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const LOG_TARGET: &str = "tari::p2pool::sharechain::in_memory";
// The max allowed uncles per block
pub const UNCLE_LIMIT: usize = 3;
// The relative age of an uncle, e.g. if the block is height 10, accept uncles heights 8 and 9, then MAX_UNCLE_AGE = 2
pub const MAX_UNCLE_AGE: u64 = 2;
pub const MAX_UNCLE_AGE: u64 = 4;

// The height when uncles can start being added to the chain. This is to prevent chains with many uncles at
// height 0, which the pool will create while waiting to sync to the chain.
Expand Down

0 comments on commit 733800f

Please sign in to comment.