mleku on Nostr: i'm not quite finished the implementation yet but what i have done is add an index ...
i'm not quite finished the implementation yet but what i have done is add an index that is just a byte flag index type and the hash of the event, and when it goes to save the event it looks for one of these indexes and if it finds it, it returns an "OK",false,"invalid: event was deleted, not saving it again"
Published at
2024-10-02 09:21:21Event JSON
{
"id": "15366726f82c64bb5319aa77698813e8c053ae2067af42cf434b6e69b001a5f3",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1727860881,
"kind": 1,
"tags": [
[
"p",
"1739d937dc8c0c7370aa27585938c119e25c41f6c441a5d34c6d38503e3136ef",
"wss://relay.damus.io/",
"JeffG"
],
[
"p",
"6140478c9ae12f1d0b540e7c57806649327a91b040b07f7ba3dedc357cab0da5",
"wss://nos.lol/",
"jimbocoin"
],
[
"e",
"1428deff052083d368df42cc84962fe85e336fca51d88052bdc78f4d256293d9",
"wss://nos.lol/",
"root",
"6140478c9ae12f1d0b540e7c57806649327a91b040b07f7ba3dedc357cab0da5"
]
],
"content": "i'm not quite finished the implementation yet but what i have done is add an index that is just a byte flag index type and the hash of the event, and when it goes to save the event it looks for one of these indexes and if it finds it, it returns an \"OK\",false,\"invalid: event was deleted, not saving it again\"",
"sig": "136b4c312a0ff06549b0f9154ee8c35c53d345b3eff5a3a2b32871c57e735a79988e3b83b6ea210e2cc71aa9bd1208e92cca852533d7ec3e86404d5be8f9b7b0"
}