From cd5ed4ce129d327c7e0f71561e2c867d7eaceee1 Mon Sep 17 00:00:00 2001 From: gop Date: Tue, 29 Oct 2024 16:59:47 -0500 Subject: [PATCH] bugfix: for sycing when there is noise --- core/block_validator.go | 2 +- core/core.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/block_validator.go b/core/block_validator.go index 253094f6c9..9d00035e22 100644 --- a/core/block_validator.go +++ b/core/block_validator.go @@ -33,7 +33,7 @@ import ( ) const ( - c_maxAllowableEntropyDist = 3500 // Maximum multiple of zone intrinsic S distance allowed from the current Entropy + c_maxAllowableEntropyDist = 200 // Maximum multiple of zone intrinsic S distance allowed from the current Entropy ) // BlockValidator is responsible for validating block headers, uncles and diff --git a/core/core.go b/core/core.go index da00b0691f..fe2a1d5a8a 100644 --- a/core/core.go +++ b/core/core.go @@ -35,7 +35,7 @@ import ( const ( c_maxAppendQueue = 100000 // Maximum number of future headers we can store in cache c_maxFutureTime = 30 // Max time into the future (in seconds) we will accept a block - c_appendQueueRetryPeriod = 100 * time.Millisecond // Time before retrying to append from AppendQueue + c_appendQueueRetryPeriod = 200 * time.Millisecond // Time before retrying to append from AppendQueue c_appendQueueThreshold = 200 // Number of blocks to load from the disk to ram on every proc of append queue c_processingCache = 10 // Number of block hashes held to prevent multi simultaneous appends on a single block hash c_primeRetryThreshold = 1800 // Number of times a block is retry to be appended before eviction from append queue in Prime @@ -50,7 +50,7 @@ const ( c_maxRemoteTxQueue = 50000 c_remoteTxProcPeriod = 2 // Time between remote tx pool processing c_asyncWorkShareTimer = 1 * time.Second - c_maxFutureEntropyMultiple = 500 + c_maxFutureEntropyMultiple = 200 ) type blockNumberAndRetryCounter struct {