Commit b41037f
fix(sync): reduce P2P init timeout and fallback to DA sync
Previously, P2P header sync initialization would block for up to 10
minutes retrying when peers were unavailable (e.g., blocked by gater).
This prevented DA sync from starting, leaving the node stuck.
Changes:
- Reduce P2P init timeout from 10 minutes to 30 seconds
- Return nil (not error) on timeout to allow startup to continue
- DA sync will provide headers and WriteToStoreAndBroadcast lazily
initializes the go-header store and syncer
- P2P recovers automatically once DA provides trusted headers
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 455b6c1 commit b41037f
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
440 | 442 | | |
441 | 443 | | |
442 | 444 | | |
443 | | - | |
| 445 | + | |
| 446 | + | |
444 | 447 | | |
445 | 448 | | |
446 | 449 | | |
| |||
455 | 458 | | |
456 | 459 | | |
457 | 460 | | |
458 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
459 | 465 | | |
460 | 466 | | |
461 | 467 | | |
| |||
0 commit comments