block-core / blockcore-wallet

Web5 Wallet for your coins, tokens, identities, NFTs and more.
https://www.blockcore.net/wallet
MIT License
43 stars 33 forks source link

Sending multiple transactions sequentially fails due to reuse of same UTXOs #234

Closed sondreb closed 1 year ago

sondreb commented 1 year ago

Reported by @HPrivakos, when sending a transaction the wallet does not mark the UTXOs as spent until their new status is retrieved from the indexer. That means if a user sends two transactions quickly, the second transaction will attempt to use the same UTXOs.

This should be fixed by marking UTXOs as "spent" in the local state.