Skip to content

Leave spent objects out of the membership query when syncing objects - #407

Open
robknight wants to merge 1 commit into
mainfrom
sync-skip-spent
Open

robknight wants to merge 1 commit into
mainfrom
sync-skip-spent

Conversation

@robknight

Copy link
Copy Markdown
Member

Closes #406

A full object sync sent the commitment and nullifier of every object file to the synchronizer, spent files included, in sequential batches. Spent files stay spent whatever the chain reports, so their answers were never used, yet they made the sync grow with the player's whole history rather than their inventory. For a player with thirty times as many spent objects as live ones, listing the inventory took tens of seconds and Bitcraft took over a minute to open.

A full object sync sent the commitment and nullifier of every object
file to the synchronizer, spent files included, in sequential batches.
Spent files stay spent whatever the chain reports, so their answers were
never used, yet they made the sync grow with the player's whole history
rather than their inventory. For a player with thirty times as many
spent objects as live ones, listing the inventory took tens of seconds
and Bitcraft took over a minute to open.
@robknight
robknight requested a review from dhvanipa November 11, 2026 20:37

This branch has not been deployed

No deployments
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.

Discord presence loses its BIT value when GET /objects/unspent takes over 60 s (spent files are still synced)

2 participants