Skip to content

Commit 122b26d

Browse files
committed
[CHORE] Imporve fast sync config params
1 parent 4684082 commit 122b26d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/resources/application.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ mantis {
285285

286286
# Retry interval for resuming fast sync after all connections to peers were lost
287287
# Also retry interval in regular sync: for picking blocks batch and retrying requests
288-
sync-retry-interval = 15.seconds
288+
sync-retry-interval = 0.5 seconds
289289

290290
# Response time-out from peer during sync. If a peer fails to respond within this limit, it will be blacklisted
291291
peer-response-timeout = 3.minutes
@@ -319,7 +319,7 @@ mantis {
319319

320320
# During fast-sync when most up to date block is determined from peers, the actual target block number
321321
# will be decreased by this value
322-
target-block-offset = 500
322+
target-block-offset = 128
323323

324324
# How often to query peers for new blocks after the top of the chain has been reached
325325
check-for-new-block-interval = 10.seconds
@@ -329,7 +329,7 @@ mantis {
329329
fastsync-block-chain-only-peers-pool = 100
330330

331331
# time between 2 consecutive requests to peer when doing fast sync, this is to prevent flagging us as spammer
332-
fastsync-throttle = 0.3 seconds
332+
fastsync-throttle = 0.1 seconds
333333

334334
# When we receive a branch that is not rooted in our chain (we don't have a parent for the first header), it means
335335
# we found a fork. To resolve it, we need to query the same peer for previous headers, to find a common ancestor.

0 commit comments

Comments
 (0)