You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is related to #1969 which aims to split mining program from origin stacks-node
Describe the solution you'd like
Two endpoints: GET /v2/snapshot/{burnchain_height} GET /v2/snapshot/{hash}
The params includes the following information:
burnchain_height is the burnChain block height
burnchain_hash is the burnChain block hash
They are all uniqueIndex in snapshot table which can points to a unique row in SQLite query.
If the node cannot provide a valid snapshot state (e.g., if the node haven't reached burnchain_height or there is no burnchain_hash in the database) a 400 response is returned.
The 200 response should contain the following data: