xmr-btc-swap/swap
Daniel Karzel 6694e4f4e0
Ensure that output of lock script is at tx-output index 0
We subscribe to transactions upon broadcast, where we use output index `0` for the subscription.
In order to ensure that this subscription is guaranteed to be for the locking script (and not a change output) we now ensure that the locking script output is always at index `0` of the outputs of the transaction.

We chose this solution because otherwise we would have to add more information to broadcasting a transaction.
This solution is less intrusive, because the order of transaction outputs should not have any side effects and ensuring index `0` makes the whole behaviour more deterministic.
2021-05-20 13:05:52 +10:00
..
src Ensure that output of lock script is at tx-output index 0 2021-05-20 13:05:52 +10:00
tests Network check upon spot price request 2021-05-20 13:03:29 +10:00
Cargo.toml Toggle json logs using commandline flag. 2021-05-11 15:28:25 +10:00