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

[Network] awaken Nakamoto inv sync / block download if the p2p state machine sees unprocessable staging blocks

Open jcnelson opened this issue 1 year ago • 0 comments

The presence of unprocessable (e.g. discontinuous) staging blocks in the Nakamoto staging blocks DB is a strong hint that the node has missed a Nakamoto block push, and should immediately attempt an inventory sync and block download with its neighbors.

This is bursty behavior that can be easily weaponized by a rogue miner, so care will need to be taken to ensure that the node only exhibits this bursty behavior for a short window of time (e.g. burst for N seconds per newly-observed unprocessable block).

jcnelson avatar Sep 05 '24 03:09 jcnelson