Skip to content

Commit

Permalink
bugfix: for sycing when there is noise
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Oct 29, 2024
1 parent 5e83975 commit cd5ed4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/block_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit cd5ed4c

Please sign in to comment.