Skip to content

Commit e70b002

Browse files
TheSentinel454Elrondclaude
committed
test(relay): let the kind:9000 test helper name its own signer
nostr's EventBuilder drops a p tag for the signing key unless allow_self_tagging is set, so the ordering test's step-down p never reached the relay. Co-authored-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Luke Tornquist <[email protected]>
1 parent 3fdf906 commit e70b002

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎crates/buzz-relay/src/handlers/put_user_postgres_tests.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ fn put_user(actor: &Keys, channel_id: Uuid, p_tags: &[&[&str]], extra: &[&[&str]
2222
for tag in extra {
2323
tags.push(Tag::parse(tag.iter().copied()).unwrap());
2424
}
25+
// An actor may name themselves (stepping down, or a self-add); the
26+
// builder drops a `p` tag for its own key unless told not to.
2527
EventBuilder::new(Kind::Custom(9000), "")
2628
.tags(tags)
29+
.allow_self_tagging()
2730
.sign_with_keys(actor)
2831
.expect("sign 9000")
2932
}

0 commit comments

Comments
 (0)