Skip to content

Commit

Permalink
fix: let shadowgraph be responsible for all unlinking (#11121)
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Littley <[email protected]>
  • Loading branch information
cody-littley authored Jan 24, 2024
1 parent b2dfbf5 commit 0d03207
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,12 @@ public List<ConsensusRound> addEvent(@NonNull final EventImpl event) {

if (paused) {
// If paused, throw everything into the void
event.clear();
return List.of();
}

try {
if (event.getGeneration() < consensusSupplier.get().getMinGenerationNonAncient()) {
// ancient events *may* be discarded, and stale events *must* be discarded
event.clear();
return List.of();
}

Expand Down

0 comments on commit 0d03207

Please sign in to comment.