Provide a suggested checkpoint if rollback_to slot doesn't exist #90
Quantumplation
announced in
Archives
Replies: 1 comment
-
Addressed by: 14da8a3 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe your idea, in simple words.
Suppose I want to track a new wallet, and I know the slot where I first sent it funds;
I don't want to provide that slot as the rollback point, because that will exclude the initial funds that were sent to the wallet.
So, I take the slot number (something like 79136895), and truncate it to a nice whole number (something like 79136000). This fails.
My suggestion is to either:
ancestor_to
which uses the checkpoint to find the most recent ancestorWhy is it a good idea?
The first proposal would reduce the needed API calls by one, and save a round trip.
The second proposal would at least make the workflow, when doing things by hand, more obvious.
Are you willing to work on it yourself?
Yes, but as always, I doubt I'd have the time unless someone were to provide some hints at source files to look at. 😅
Beta Was this translation helpful? Give feedback.
All reactions