mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-29 01:16:24 -05:00
35c42263df
145: Make lock-tx id available in redeem/punish state to be able to assert exact fees r=da-kami a=da-kami We can do exact assertions for Bob's redeem as well, but have to store Bob's tx_lock id in the respective final state. Make tx_lock available in BtcRedeemed and BtcPunished to have better assertions / harmonize test behaviour. Storing this information is strictly speaking not needed for the production environment. But it is static information that can be seen as additional information that can be handy for a user. We could potentially extract it inside the tests as well (for redeem without restart would be a bit tricky), but I think this solution is more elegant. Co-authored-by: Daniel Karzel <daniel@comit.network> Co-authored-by: Franck Royer <franck@coblox.tech> Co-authored-by: bors[bot] <26634292+bors[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |