Skip to content

Conversation

@alltheseas
Copy link

…s4xya5ap9zr7xxr0jlrtrattwlesytn2s42030lzu0dwlzqpd26k5

Kind 1111 Support

  • nostrdb/src/nostrdb.c:2033 now recognises uppercase E tags when parsing
    replies, preserving the true root for comment threads while still falling
    back to NIP-10 heuristics for classic notes.
  • nostrdb/src/nostrdb.c:2174 counts replies from both kind 1 notes and kind
    1111 comments when rebuilding metadata.
  • nostrdb/src/nostrdb.c:6053 treats comments like text notes for full-
  • nostrdb/src/nostrdb.c:8903 and nostrdb/src/nostrdb.h:253 add a common-
    kind classification for comments, letting stats and tooling report them
    distinctly.

Testing

  • make check
  • git submodule update --init deps/secp256k1 – fetch the required submodule
    (network access needed).
  • make check – builds with sanitizers and runs the bundled test binary (re-
    uses deps/secp256k1).
  • ./test – rerun tests without rebuilding if you already ran make check.
  • Optional cleanup before retrying: make clean.

…s4xya5ap9zr7xxr0jlrtrattwlesytn2s42030lzu0dwlzqpd26k5
@alltheseas
Copy link
Author

@jb55 👀

@alltheseas
Copy link
Author

d571706 should be in line with nevernesting requirement

@jb55
Copy link
Contributor

jb55 commented Nov 1, 2025

this changes the nip10 parsing code which I copied from nostrdb-rs. this repo doesn't contain the tests from there, so before we can change the reply parsing code we'll need to port the nip10 test coverage from rust first. they are found in src/util/nip10.rs in nostrdb-rs

@alltheseas
Copy link
Author

6a23012 👀

return 0;
}

void ndb_note_get_reply(struct ndb_note *note, struct ndb_note_reply *reply)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what the point of these functions are

direct_replies[0] = *ndb_note_meta_counts_direct_replies(entry);
printf("\t# direct replies %d\n", direct_replies[0]);
assert(direct_replies[0] == 83);
assert(direct_replies[0] == 59);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if these are different then that means the reply functions behavior changed/is broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants