Conversation
…y answers Every relay request now ends as answered, failed or timed out, and only an answered relay counts as having nothing. Versions a relay sent before failing stay candidates, a scan no relay answered is an error rather than an empty result, and nothing is recommended until one of the user's write relays has answered. When the app has no relay list for the user, a direct lookup tells a missing list (the defaults stand in, and the page says so) from one that couldn't be fetched (current stays unconfirmed). The results show how many relays answered, with each relay's outcome on request. A scanned event counts only with a valid signature, the scanned author and the requested kind. The re-read before a restore goes through checkLazarusCurrent: only a newer version counts as a change, and without an answer from a write relay the restore stops. A restore succeeds when one write relay accepts it. Profile changes cover every field and tag a restore would replace. Spec: https://github.com/dmnyc/lazarus/blob/main/SPEC.md (0.6.0-draft)
The kind 10044 registry entry counted p tags, but NIP-4e lists encryption pubkeys in n tags, so every key list scanned as empty. Spec: https://github.com/dmnyc/lazarus/blob/main/SPEC.md (0.6.1-draft)
The scan asked relays through the client's shared subscription, which reports a relay that couldn't connect as finished. A dead relay counted as answered with nothing, so a refused write relay could confirm current and let the re-read before a restore pass. Each relay is now asked directly: only EOSE is an answer, a refused connection or a CLOSED is a failure, and a relay's own EOSE timeout can't stand in for one. Scans authenticate only to relays in the user's own list. Items are counted once each, a tag without a value isn't one, a profile's items are its fields, and relay URLs compare normalized. Versions from the same second order as NIP-01 keeps them, including in the re-read. The review says which side's private items couldn't be decrypted; uncounted ones on current, like a shrinking restore, need a separate confirmation, now a checkbox. Kind 10044 states what both versions mean in the restore's direction and asks for intent. Spec: https://github.com/dmnyc/lazarus/blob/main/SPEC.md (0.6.2-draft)
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.
Follow-up to #22, bringing data recovery up to the Lazarus spec's 0.6.2-draft (https://github.com/dmnyc/lazarus/blob/main/SPEC.md).
{}reads as empty), and relay URLs compare normalized.ntags NIP-4e puts keys in; the registry countedptags, so every key list scanned as empty. The review states what both versions mean, in the direction of the restore, and asks you to confirm the change.