Skip to content

Commit

Permalink
GDD: use new AF.splitAtSlot
Browse files Browse the repository at this point in the history
  • Loading branch information
amesgen committed Aug 29, 2024
1 parent 3da919f commit ec55d14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Patch

- Used new `AF.splitAtSlot` function in GDD.
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,7 @@ densityDisconnect (GenesisWindow sgen) (SecurityParam k) states candidateSuffixe

-- This is performance sensitive. We used to call @takeWhileOldest@ here,
-- which would reconstruct much of the original fragment.
dropBeyondGenesisWindow =
AF.dropWhileNewest ((>= firstSlotAfterGenesisWindow) . blockSlot)
dropBeyondGenesisWindow = AF.splitAtSlot firstSlotAfterGenesisWindow

-- Note [Chain disagreement]
-- ~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit ec55d14

Please sign in to comment.