Skip to content

Improve Offerbook Syncing #720

@mojoX911

Description

@mojoX911

The current offerbook syncing logic can be significantly optimized. Some basic failure cases can be handled well. Some smarter checkup logic can improve sync waiting time a lot.

Below is a list (not exhaustive) of major things that can be improved.

  • Add a backup nost relay. If nostr.lol fails, instead of failing the sync, it should connect to the backup relay to fetch offers.
  • Timestamp each maker's offer update. Instead of downloading the offer from everybody at sync, only download for those makers who haven't been updated in the last 30 minutes.
  • Reduce preferences to connect to known unresponsive makers. Tor connections are costly. We can use some timeout increment for unresponsive makers. For every dead maker, increment the next connection checking time by 30 mins. That way, for makers who are dead for a long time, they won't be checked for connection at every sync.

This and many other smaller improvements can be made.

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Status

todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions