Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: implement double checking for spendable utxos #4893

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

alter-eggo
Copy link
Contributor

@alter-eggo alter-eggo commented Feb 2, 2024

Try out this version of Leather — Extension build, Test report

In the BTC send flow we filter spendable utxo using Hiro API, in order to double check spendable utxos on the last step of tx flow we fetch inscriptions by utxo id using bestinslot api

@alter-eggo alter-eggo changed the title feat: implement double checking for utxo spent feat: implement double checking for spendable utxos Feb 2, 2024
@alter-eggo alter-eggo force-pushed the feat/block-btc-tx branch 3 times, most recently from dee9b84 to 93f65d9 Compare February 5, 2024 12:59
Copy link
Collaborator

@kyranjamie kyranjamie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to be labeled ready for review?

@alter-eggo alter-eggo marked this pull request as ready for review February 5, 2024 14:57
@alter-eggo alter-eggo linked an issue Feb 7, 2024 that may be closed by this pull request
@alter-eggo alter-eggo force-pushed the feat/block-btc-tx branch 3 times, most recently from 9f37da3 to 614e81e Compare February 9, 2024 12:57
Comment on lines 85 to 82
await refetchOrdInscriptionsList();
const ordinalsComResponses = await Promise.all(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to use allSettled here? What if one fails?

Copy link
Contributor Author

@alter-eggo alter-eggo Feb 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need to wait till all settled? I believe if one request fails - we can process error immediately

@alter-eggo alter-eggo force-pushed the feat/block-btc-tx branch 3 times, most recently from 3a85a2c to 49fe18f Compare February 14, 2024 11:19
@alter-eggo alter-eggo force-pushed the feat/block-btc-tx branch 2 times, most recently from 9d0e937 to d6847cb Compare February 22, 2024 15:44
Copy link
Collaborator

@kyranjamie kyranjamie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @alter-eggo

@alter-eggo alter-eggo added this pull request to the merge queue Feb 26, 2024
Merged via the queue into dev with commit 86dd00d Feb 26, 2024
28 checks passed
@alter-eggo alter-eggo deleted the feat/block-btc-tx branch February 26, 2024 12:19
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.

Implement double checking for spendable UTXOs in transaction flow
3 participants