Skip to content

Commit

Permalink
increase trusted node sync state download timeout to 3 minutes (#6969)
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec authored Feb 27, 2025
1 parent 085b195 commit d74e9ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions beacon_chain/trusted_node_sync.nim
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ import
./spec/eth2_apis/rest_beacon_client,
./spec/[beaconstate, eth2_merkleization, forks, light_client_sync,
network, presets,
state_transition, deposit_snapshots],
"."/[beacon_chain_db, era_db]
state_transition, deposit_snapshots]

from presto import RestDecodingError
from "."/beacon_clock import
BeaconClock, fromFloatSeconds, getBeaconTimeFn, init

const
largeRequestsTimeout = 120.seconds # Downloading large items such as states.
largeRequestsTimeout = 3.minutes # Downloading large items such as states.
smallRequestsTimeout = 30.seconds # Downloading smaller items such as blocks and deposit snapshots.

proc fetchDepositSnapshot(
Expand Down

0 comments on commit d74e9ab

Please sign in to comment.