huskies: merge 538_bug_done_archived_sweep_never_fires_because_stage_done_projection_uses_utc_now_instead_of_real_merged_at_timestamp

This commit is contained in:
dave
2026-04-11 13:25:51 +00:00
parent 5d193bb568
commit 4ab723f40b
5 changed files with 130 additions and 4 deletions
+5
View File
@@ -293,6 +293,11 @@ impl<T: CrdtNode + DebugView> BaseCrdt<T> {
// NOT add its signed_digest to `received`: a legitimate op that shares
// the same signed_digest (e.g. the un-tampered original) would otherwise
// be silently dropped as AlreadySeen.
// Only mark as received and unblock dependents when the op was actually
// applied. If we insert on error (e.g. ErrHashMismatch), a subsequent
// apply of a *legitimate* op with the same signed_digest would be
// silently dropped as AlreadySeen, preventing equivocation detection
// from working correctly.
if status == OpState::Ok {
self.received.insert(op_id);