stacks-network / stacks-core

The Stacks blockchain implementation
https://docs.stacks.co
GNU General Public License v3.0
3.01k stars 667 forks source link

Fix/net fixes stackerdb #5066

Closed jcnelson closed 1 month ago

jcnelson commented 1 month ago

Fixes StackerDB sync in master. Namely, if there's a getchunk/putchunk that fails due to a stale (or future) version NACK, the StackerDB sync state machine should immediately retry sync. Failure to do this can lead to signers and miners getting permanently out-of-sync, since if the StackerDB sync state machine runs at a slower rate than writes to these StackerDBs, then there will inevitably be failures in getchunk/putchunk that will never be resolved.