mutiny-node icon indicating copy to clipboard operation
mutiny-node copied to clipboard

Add function to resync hermes dms

Open benthecarman opened this issue 1 year ago • 5 comments

Closes #1163

benthecarman avatar May 08 '24 16:05 benthecarman

Should we just have this in the sync chain part? or another button in the admin page?

I would also like to know why it's happening in the first place, this is a bandaid fix.

AnthonyRonning avatar May 08 '24 17:05 AnthonyRonning

Should we just have this in the sync chain part? or another button in the admin page?

i think its better as a separate function here, for the front end we can do whatever

I would also like to know why it's happening in the first place, this is a bandaid fix.

I am not 100% sure, my guess is that relays are giving us events ordered latest first, so if the app is closed before they are all done, we may miss some events. Not really sure how to best fix this however, there isn't a way to specificy a sort order in a nostr filter, only real fix would be to ask the hermes server

benthecarman avatar May 08 '24 20:05 benthecarman

The "don't parse DMs before this date" logic is the problem here. We need to remove it.

AnthonyRonning avatar May 08 '24 21:05 AnthonyRonning

The "don't parse DMs before this date" logic is the problem here. We need to remove it.

We need something, otherwise we have to do a full rescan everytime which slows down the wallet to a crawl.

Maybe saving the timestamp of when we last finished processing all events instead of individual events

benthecarman avatar May 08 '24 21:05 benthecarman

Maybe saving the timestamp of when we last finished processing all events instead of individual events

Sure, and then back date it 30 days so we know we aren't missing money

AnthonyRonning avatar May 08 '24 21:05 AnthonyRonning