vishalxl / nostr_console

Nostr console is an open-source twitter-like social network, direct chat app and group chat all bundled into one program. Built on the decentralized Nostr protocol.
GNU Affero General Public License v3.0
439 stars 33 forks source link

Conflicting IDs when truncated at 4? #40

Closed armstrys closed 1 year ago

armstrys commented 1 year ago

I haven't been able to totally debug this, but I think the IDs as displayed in nostr_console may be too short to avoid conflicts given the increased usage.

I attempted to send a delete request for id "20c2" and received the response Invalid Event Id(s). Kindly enter a more unique id.

Since the console truncates the ID at 4 I went to another client and was able to send the delete request using more characters. I assume there was a conflicting ID, but didn't have to tools to find it. Maybe worth upping the default length of ID display in the terminal?

vishalxl commented 1 year ago

Yes, this needs to be done now with the influx. Will do that in next iteration. This is needed for replies etc.

btw, you can find your event in event file in case you want from the prefix or content, btw.

armstrys commented 1 year ago

Thanks that’s good to know!

vishalxl commented 1 year ago

Since this is part of readme as todo, and planned to be done, closing this for now.