Skip to content

Conversation

bitcoinpirate
Copy link
Contributor

fixes #291

I tried to keep it backwards compatible by allowing the event id and the event object.

@bitcoinpirate bitcoinpirate force-pushed the support_replaceable_events branch from e337b1e to 914504d Compare August 4, 2024 15:57
@fiatjaf
Copy link
Collaborator

fiatjaf commented Aug 4, 2024

This code isn't zapping the replaceable event itself, but another replaceable events referenced by the target. To zap the replaceable event you would have to check if the target is replaceable, then build your own a tag from its kind, pubkey and d tag.

@bitcoinpirate bitcoinpirate marked this pull request as draft August 4, 2024 16:00
@bitcoinpirate bitcoinpirate force-pushed the support_replaceable_events branch 2 times, most recently from 7ae5831 to 6b35f06 Compare August 4, 2024 16:14
@fiatjaf fiatjaf force-pushed the master branch 2 times, most recently from 4d4b83e to bf0c4d4 Compare November 4, 2024 18:37
Copy link
Contributor

@SnowCait SnowCait left a comment

Choose a reason for hiding this comment

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

@bitcoinpirate Nice PR, but is this still active?

@AsaiToshiya
Copy link
Collaborator

If there is no response from @bitcoinpirate, I will edit and merge theirs fork.

@AsaiToshiya AsaiToshiya force-pushed the support_replaceable_events branch from 7eed891 to 0247a89 Compare February 21, 2025 16:29
@AsaiToshiya
Copy link
Collaborator

@SnowCait I applied your good suggestions.

@AsaiToshiya AsaiToshiya marked this pull request as ready for review February 23, 2025 02:13
@AsaiToshiya
Copy link
Collaborator

I will merge today.

@AsaiToshiya AsaiToshiya merged commit 44a679e into nbd-wtf:master Feb 23, 2025
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.

Add support for zapping replaceable events

4 participants