Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Detect Ghost / Spent Outputs on Stamps #99

Open
reinamora137 opened this issue Dec 12, 2023 · 2 comments
Open

Detect Ghost / Spent Outputs on Stamps #99

reinamora137 opened this issue Dec 12, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed indexer Indexer related issues

Comments

@reinamora137
Copy link
Collaborator

We need to detect if outputs have been spent on stamp

https://xchain.io/asset/A198700000019482022

This spent them https://blockstream.info/tx/9d861b2acdc4b91342c2e9b1dbf9900bc01ab8c720ec574c0b3189494098128b?expand

So it becomes a ghost prunable stamp

This project could also include calculating how much is tied up in a stamp output. This would also entail watching for any new transactions that spend them and updating a 'balances' table.

@Chriton Chriton added the indexer Indexer related issues label Dec 20, 2023
@reinamora137
Copy link
Collaborator Author

this can be done in the utxo loop where we detect keyburn. likely need a new table to track all of the outputs in a similar manner to CP.

@reinamora137
Copy link
Collaborator Author

For non-keyburn stamps the potential for the user spending the outputs on a trx making them prunable is real.

Need to add a db field in stamptable to identify spent and publish in the api as perhaps 'prunable'

reference this function: https://github.com/stampchain-io/btc_stamps/pull/75/files#diff-1335f2045757b08a0afd1c83b54ca5bcbaad6c8b835126c9f3d2169b9a36d360L412-L491

@reinamora137 reinamora137 changed the title Detect Ghost / Spent Outputs on Stamps Detect Ghost / Spent Outputs on Stamps May 16, 2024
@reinamora137 reinamora137 added enhancement New feature or request help wanted Extra attention is needed labels May 16, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request help wanted Extra attention is needed indexer Indexer related issues
Projects
None yet
Development

No branches or pull requests

3 participants