From 733800f993904e3a5e43a3958c44911352e26b59 Mon Sep 17 00:00:00 2001 From: stringhandler Date: Thu, 7 Nov 2024 19:02:24 +0200 Subject: [PATCH] fix: increase uncle limit (#138) Increase the uncle age limit --- src/sharechain/in_memory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sharechain/in_memory.rs b/src/sharechain/in_memory.rs index a9ff6d0..4f66640 100644 --- a/src/sharechain/in_memory.rs +++ b/src/sharechain/in_memory.rs @@ -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.