Skip to content

Conversation

@sidhujag
Copy link
Member

No description provided.

jagdeep sidhu and others added 4 commits August 8, 2025 23:22
…empool

Ensure negative unconfirmed SPT deltas on send by initializing mempool token entries before subtraction in getAddrVinValue (api/worker.go)
Prevent duplicate unconfirmed SPT tokens across xpub-derived addresses by marking mempool entries as used after first attach (api/xpub.go)
Keep confirmed balances unchanged; unconfirmed now reflects per-address deltas only for actual receiver/sender, consistent with SYS

Impact:
xpub/address endpoints show accurate real-time SPT balance changes (negative on send, positive only on the receiving address)
Avoids placeholder duplication across derived addresses
Validation:
Send SPT: unconfirmed shows negative delta on sending address/xpub; confirmed unchanged until mined
Receive SPT: only the receiving derived address shows positive unconfirmed
Mixed (send between two derived addresses): deltas apply to the correct addresses without duplication
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.

10 participants