comit-network / waves

Workspace for project waves - bringing DeFi to Liquid.
MIT License
15 stars 6 forks source link

Lock selected utxos to not double select them. #214

Closed bonomat closed 3 years ago

bonomat commented 3 years ago

This fixes an issue were bobtimus tries to double spend himself. If we do not lock the selected utxos bobtimus might just reselect them. This can cause a race condition if two competing transactions are trying to spend the same utxo.

Note: this can cause side effects were bobtimus runs out of money. If this happens, we need to manually mine a block.

resolves #200