mintlayer-core icon indicating copy to clipboard operation
mintlayer-core copied to clipboard

Limit the number of peers from which a single block will be downloaded

Open ImplOfAnImpl opened this issue 2 years ago • 1 comments

Right now we don't have such a limit, so the node will download the same block from all connected peers that have it.

P.S. in bitcoin, the corresponding limit is MAX_CMPCTBLOCKS_INFLIGHT_PER_BLOCK, which equals 3 at this moment.

ImplOfAnImpl avatar Nov 01 '23 11:11 ImplOfAnImpl

Keep in mind that compact blocks are a whole different thing. They're blocks that are partially filled from the mempool to optimize for bandwidth. Not particularly related to syncing from scratch.

TheQuantumPhysicist avatar Nov 01 '23 11:11 TheQuantumPhysicist