Browse Source
Fixes #1294. Before this commit, calls to query_utxo_set with default arguments would ignore the mempool and thus return utxos which were spent in unconfirmed transactions. Thus, takers would continue negotiation of coinjoins with makers who sent them already-spent utxos, leading to failure at broadcast time. This was not intended behaviour; we want takers to reject utxos that are double spent in the mempool. This commit changes that default argument to True so that utxo set changes in the mempool are accounted for. It also switches the name of the includeunconf argument, which was misleading, to include_mempool, with appropriately updated docstring. Finally, in this commit we also ensure that callers of this function check, where necessary, the returned confirmations field to disallow unconfirmed utxos where that is necessary.master
6 changed files with 26 additions and 19 deletions
Loading…
Reference in new issue