mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-06-19 04:19:27 -04:00
Remove Tx
arguments from add_signatures
functions
The only reason we need this argument is because we need to access the output descriptor. We can save that one ahead of time at when we construct the type.
This commit is contained in:
parent
0f8fbd087f
commit
6c38d66864
9 changed files with 28 additions and 31 deletions
|
@ -343,7 +343,7 @@ async fn run_until_internal(
|
|||
match published_refund_tx {
|
||||
None => {
|
||||
let state = AliceState::BtcPunishable {
|
||||
tx_refund,
|
||||
tx_refund: Box::new(tx_refund),
|
||||
state3,
|
||||
monero_wallet_restore_blockheight,
|
||||
};
|
||||
|
@ -366,7 +366,7 @@ async fn run_until_internal(
|
|||
Some(published_refund_tx) => {
|
||||
let spend_key = extract_monero_private_key(
|
||||
published_refund_tx,
|
||||
tx_refund,
|
||||
&tx_refund,
|
||||
state3.s_a,
|
||||
state3.a.clone(),
|
||||
state3.S_b_bitcoin,
|
||||
|
@ -445,7 +445,7 @@ async fn run_until_internal(
|
|||
Either::Left((published_refund_tx, _)) => {
|
||||
let spend_key = extract_monero_private_key(
|
||||
published_refund_tx?,
|
||||
tx_refund,
|
||||
&tx_refund,
|
||||
state3.s_a,
|
||||
state3.a.clone(),
|
||||
state3.S_b_bitcoin,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue