-
Notifications
You must be signed in to change notification settings - Fork 707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix vesting file (old timestamp) #3654
Conversation
|
||
Ok(prev) | ||
}) | ||
// we don't need range with StartSlot(0,0) && EndSlot(0,0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need the range with the start timestamp at genesis otherwise from genesis to X there is no vesting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes we have it, my filter is && not ||.
Here we don't want vesting range with start_slot(0,0) and end_slot(0,0).
This happens when the timestamp in vesting_file is passed for the first launch of BC. There is no block at the timestamp.
So the next range (and the first in the map) has start_slot(0,0) and end_slot(Slot valide timestamp).
Sorry if i don't explain well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix
3659: fix vesting file (#3654) r=AurelienFT a=modship * [X] document all added functions * [X] try in sandbox /simulation/labnet * [X] unit tests on the added/changed features * [X] make tests compile * [X] make tests pass * [X] add logs allowing easy debugging in case the changes caused problems * [X] if the API has changed, update the API specification Co-authored-by: modship <lu@massa.net>
* fix(vesting) : fix init slot with passed timestamp #3654
* fix(vesting) : fix init slot with passed timestamp #3654
Fix #3651