-
Notifications
You must be signed in to change notification settings - Fork 550
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
Fixes #5724 in develop #5745
Fixes #5724 in develop #5745
Conversation
( `Added | ||
, { account with | ||
delegate= public_key | ||
delegate |
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.
It seems a bit funny to use the empty
key to indicate no delegation.
Would it be better to use an option?
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.
Actually, haven't we been using the account pk for the delegate in the case where there's no delegation?
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.
Yeah that's the default (all the accounts delegate to themselves/staking?). But in the case of non-default tokens we don't want to allow delegation at all
next_available_token
to the scan statecheck_invariants
functionChecklist: