fix(cli): refresh stale repository timestamps - #6282
Open
cwschroeder wants to merge 1 commit into
Open
Conversation
Signed-off-by: Christian Schröder <christian.w.schroeder@gmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
buzz repos protect set/remove(undrepos bind) schreiben das kind:30617-Update mitexisting.created_at + 1. Bei einer Repo-Ankündigung, die älter als 15 Minuten ist, lehnt der Relay das Event mit „event timestamp too far from server time“ ab — Schutzregeln werden dauerhaft unveränderbar.Realer Ausfall
Ein Buzz-Git-Mirror hing seit über zwei Wochen still, weil sich die
require-patch-Regel einer alten Ankündigung nicht mehr entfernen ließ. Erst die lokal gebaute CLI mit diesem Fix akzeptierte den Write in unter einer Minute.Fix
Stemple das Ersatz-Event mit
max(now, head + 1)statthead + 1:head + 1-Boden behält die NIP-33-Monotonie über den beobachteten Head (kein Leapfrogging zwischen parallelen Writern).now-Boden hält den Writer innerhalb des Relay-Driftfensters (±15 min), sodass alte Repos aktualisierbar bleiben.Mit Regressionstest (stale Head, Update bekommt aktuelle Wall-Clock) und angepasster Monotonie-Assertion.
Hinweis auf parallele PRs
Dasselbe Problem adressieren bereits
#2901,#4509,#4363und#5111. Dieser PR ist inhaltlich identisch gelöst, zusätzlich mit realem Ausfallbeleg aus Produktion (Mirror seit 01.08. auf altem Stand, Fix danach akzeptiert).