-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't define
preferCandidate
in terms of Ord
We want to restrict the Praos VRF tiebreakers based on slot distance. Naively adaopting the `Ord` instance will however make the chain order non-transitive. As a solution, we allow to customize the logic of `preferCandidate`, while still keeping a total chain order.
- Loading branch information
Showing
17 changed files
with
295 additions
and
115 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...tocol/changelog.d/20240417_122550_alexander.esgen_customize_prefer_candidate.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### Non-Breaking | ||
|
||
- Adapted to introduction of new `ChainOrder` type class. |
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
5 changes: 5 additions & 0 deletions
5
...ensus/changelog.d/20240417_122327_alexander.esgen_customize_prefer_candidate.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### Breaking | ||
|
||
- Introduced new `ChainOrder` (with `preferCandidate`) class for `SelectView`s, | ||
and add necessary instances. Adapted `preferAnchoredCandidate` to use | ||
`preferCandidate` instead of relying on `preferAnchoredFragment`. |
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.