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

[Nakamoto] Block downloader network state machine #4063

Closed jcnelson closed 7 months ago

jcnelson commented 11 months ago

The Nakamoto node needs a new block-downloader state machine. It will use the Nakamoto inventory vectors to identify blocks as available from peers, and download them in rarest-first order (as before). New to Nakamoto, block requests are framed on a per-tenure basis -- a single fetch obtains the tenure's blocks. In addition, there needs to be an endpoint to serve one of the last N tenures (for small N), and an endpoint for serving new blocks in the current tenure.

saralab commented 11 months ago

1: Adding get a tenures blocks , cursor system , streams blocks out of DB and makes available for nsw - S 2: separate endpoints - S 3: state machine : look at bitvectors, look at blocks for bad data etc - M

saralab commented 7 months ago

https://github.com/stacks-network/stacks-core/pull/4476

blockstack-devops commented 3 days ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.