mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-06-12 09:03:17 -04:00
parent
683d565679
commit
5463bde4f8
12 changed files with 135 additions and 13 deletions
|
@ -25,6 +25,7 @@ use uuid::Uuid;
|
|||
pub enum BobState {
|
||||
Started {
|
||||
btc_amount: bitcoin::Amount,
|
||||
change_address: bitcoin::Address,
|
||||
},
|
||||
SwapSetupCompleted(State2),
|
||||
BtcLocked(State3),
|
||||
|
@ -169,7 +170,14 @@ impl State0 {
|
|||
bail!("Alice's dleq proof doesn't verify")
|
||||
}
|
||||
|
||||
let tx_lock = bitcoin::TxLock::new(wallet, self.btc, msg.A, self.b.public()).await?;
|
||||
let tx_lock = bitcoin::TxLock::new(
|
||||
wallet,
|
||||
self.btc,
|
||||
msg.A,
|
||||
self.b.public(),
|
||||
self.refund_address.clone(),
|
||||
)
|
||||
.await?;
|
||||
let v = msg.v_a + self.v_b;
|
||||
|
||||
Ok(State1 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue