Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1851: Track stake key registrations independently from delegation r=KtorZ a=Anviking # Issue Number #1835 # Overview - [x] Keep track of stake key registrations such that we don't try to register a key twice - [ ] TODO: model impl - There was a integration test, which I saw passing at some point, but I've not rebased it to this PR - Some DB model-like tests would have been nice, but no time now # Comments To delegate in shelley we need to know whether we need to register the stake key, or if it already exists. Trying to register the same key twice will cause the delegation to fail. In shelley there are three delegation certs: - reg - dereg - delegate We need to keep track of two things: - Delegation status - Is the stake key registered or not? (new in this commit) Also new in this commit: - Stake key de-registration inserts an uptdate to the delegation status table that says that it is not delegating. <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Assign the PR to a corresponding milestone ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: Johannes Lund <johannes.lund@iohk.io> Co-authored-by: KtorZ <matthias.benkort@gmail.com>
- Loading branch information
Showing
20 changed files
with
320 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.