eqlabs / pathfinder

A Starknet full node written in Rust
https://eqlabs.github.io/pathfinder/
Other
618 stars 227 forks source link

P2P: checkpoint sync requests too large #2121

Closed CHr15F0x closed 2 days ago

CHr15F0x commented 2 months ago

Consider chunking the backward sync, ie. decrease the initial request from "everything till latest L1" to some lesser value.

kkovaacs commented 5 days ago

The problem is that nodes like Papyrus / Juno do not have a limit on the number of responses they are sending and we thus hit the p2p_stream timeout fairly consistently when requesting such huge ranges.