-
Notifications
You must be signed in to change notification settings - Fork 145
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
chore: replacing minGenNonAncient
data flow with NonAncientEventWindow
#10597
Conversation
replaces the `minGenNonAncient` data flow with a wrapping `NonAncientEventWindow` Signed-off-by: Edward Wertz <edward@swirldslabs.com>
Signed-off-by: Edward Wertz <edward@swirldslabs.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #10597 +/- ##
==========================================
Coverage ? 62.81%
Complexity ? 30926
==========================================
Files ? 3380
Lines ? 136639
Branches ? 14240
==========================================
Hits ? 85823
Misses ? 47420
Partials ? 3396 ☔ View full report in Codecov by Sentry. |
...wirlds-platform-core/src/main/java/com/swirlds/platform/consensus/NonAncientEventWindow.java
Outdated
Show resolved
Hide resolved
...ds-platform-core/src/main/java/com/swirlds/platform/event/creation/EventCreationManager.java
Outdated
Show resolved
Hide resolved
...wirlds-platform-core/src/main/java/com/swirlds/platform/consensus/NonAncientEventWindow.java
Outdated
Show resolved
Hide resolved
...-platform-core/src/main/java/com/swirlds/platform/event/deduplication/EventDeduplicator.java
Outdated
Show resolved
Hide resolved
...wirlds-platform-core/src/main/java/com/swirlds/platform/consensus/NonAncientEventWindow.java
Outdated
Show resolved
Hide resolved
...swirlds-platform-core/src/main/java/com/swirlds/platform/wiring/LinkedEventIntakeWiring.java
Outdated
Show resolved
Hide resolved
...wirlds-platform-core/src/main/java/com/swirlds/platform/consensus/NonAncientEventWindow.java
Show resolved
Hide resolved
...wirlds-platform-core/src/main/java/com/swirlds/platform/consensus/NonAncientEventWindow.java
Outdated
Show resolved
Hide resolved
...wirlds-platform-core/src/main/java/com/swirlds/platform/consensus/NonAncientEventWindow.java
Outdated
Show resolved
Hide resolved
...ds-platform-core/src/main/java/com/swirlds/platform/event/creation/EventCreationManager.java
Outdated
Show resolved
Hide resolved
…latform/consensus/NonAncientEventWindow.java Co-authored-by: Cody Littley <56973212+cody-littley@users.noreply.github.com> Signed-off-by: Edward Wertz <123979964+edward-swirldslabs@users.noreply.github.com>
# Conflicts: # platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/wiring/LinkedEventIntakeWiring.java # platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/wiring/diagram-commands.txt
Signed-off-by: Edward Wertz <edward@swirldslabs.com>
Signed-off-by: Edward Wertz <edward@swirldslabs.com>
Node: HAPI Test (Misc) Results382 tests +1 323 ✔️ +2 23m 21s ⏱️ -16s Results for commit 566ba7d. ± Comparison against base commit 2ee5ce0. This pull request removes 1 and adds 2 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Signed-off-by: Edward Wertz <edward@swirldslabs.com>
...wirlds-platform-core/src/main/java/com/swirlds/platform/consensus/NonAncientEventWindow.java
Outdated
Show resolved
Hide resolved
...wirlds-platform-core/src/main/java/com/swirlds/platform/consensus/NonAncientEventWindow.java
Outdated
Show resolved
Hide resolved
...wirlds-platform-core/src/main/java/com/swirlds/platform/consensus/NonAncientEventWindow.java
Outdated
Show resolved
Hide resolved
...wirlds-platform-core/src/main/java/com/swirlds/platform/consensus/NonAncientEventWindow.java
Show resolved
Hide resolved
...ds-platform-core/src/main/java/com/swirlds/platform/event/creation/tipset/TipsetTracker.java
Outdated
Show resolved
Hide resolved
# Conflicts: # platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/SwirldsPlatform.java
…latform/consensus/NonAncientEventWindow.java Co-authored-by: Cody Littley <56973212+cody-littley@users.noreply.github.com> Signed-off-by: Edward Wertz <123979964+edward-swirldslabs@users.noreply.github.com>
…latform/consensus/NonAncientEventWindow.java Co-authored-by: Cody Littley <56973212+cody-littley@users.noreply.github.com> Signed-off-by: Edward Wertz <123979964+edward-swirldslabs@users.noreply.github.com>
…latform/consensus/NonAncientEventWindow.java Co-authored-by: Cody Littley <56973212+cody-littley@users.noreply.github.com> Signed-off-by: Edward Wertz <123979964+edward-swirldslabs@users.noreply.github.com>
…latform/consensus/NonAncientEventWindow.java Co-authored-by: Cody Littley <56973212+cody-littley@users.noreply.github.com> Signed-off-by: Edward Wertz <123979964+edward-swirldslabs@users.noreply.github.com>
…latform/event/creation/tipset/TipsetTracker.java Co-authored-by: Cody Littley <56973212+cody-littley@users.noreply.github.com> Signed-off-by: Edward Wertz <123979964+edward-swirldslabs@users.noreply.github.com>
…dera-services into 10579-NonAncientEventWindow
Signed-off-by: Edward Wertz <edward@swirldslabs.com>
Description:
This PR is part of the Dynamic Address Book Phase 3 refactor at the platform level.
This PR replaces the
minGenNonAncient
data flow with a wrappingNonAncientEventWindow
object.This is the first step in refactoring away from
minGenNonAncient
as our ancient threshold. The newNonAncientEventWindow
provides the following:latestConsensusRound
- the latest round to come to consensus.pendingConsensusRound
- the current round coming to consensus == 1+latestConsensusRoundminGenNonAncient
- this will be deprecated and replaced with a threshold based on roundminRoundNonAncient
- the new threshold for determining when events become ancient based on their birth round.Related issue(s):
Fixes #10579
Notes for reviewer:
New Wiring Diagram