[Feat] Database checkpoints#3671
Conversation
|
note: the CI issues appear to have been caused by #3630 |
|
Can you revive and rebase: #3592 Can you write a short manual in the top PR message for how to backup (call endpoint) and recover (???) |
012136b to
460b0fa
Compare
460b0fa to
ce77cf9
Compare
|
This is ready for rebase and opening |
Signed-off-by: ljedrz <ljedrz@users.noreply.github.com>
Signed-off-by: ljedrz <ljedrz@users.noreply.github.com>
…elopment Signed-off-by: ljedrz <ljedrz@users.noreply.github.com>
Signed-off-by: ljedrz <ljedrz@users.noreply.github.com>
Signed-off-by: ljedrz <ljedrz@users.noreply.github.com>
ce77cf9 to
80beb2f
Compare
|
I stopped the Edit: yep, it was a fluke - there wasn't an issue locally either. |
|
I'm wondering if we can get And to be clear, I think we should not migrate to this other script yet, we can evaluate that PR after this is through. |
Hmm bleeding state would be a problem, as the checkpoint script expects very specific block heights; it should be fine if That being said, database checkpoints are quite isolated from the other functionalities, so I wouldn't expect them to be fragile enough to require a test run after every PR. |
Well I'm suggesting to run |
Signed-off-by: ljedrz <ljedrz@users.noreply.github.com>
|
Seems to have worked just fine; a tiny modification, too. |
This PR exposes the functionality introduced to snarkVM in ProvableHQ/snarkVM#2742 via the REST API.
Creating a checkpoint at location
/home/aleo_ledger_checkpoints/1:Rolling back to (or, more precisely, switching to) the aforementioned checkpoint:
Alternatively, the original ledger can be removed, and manually substituted with the checkpoint.
In addition to the root issue:
Filing as a draft, pending community feedback wrt the scope.