mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-03 20:14:29 -04:00
wip: Fix bug where bob was sending two amount request
This commit is contained in:
parent
9f32cd988e
commit
eb6bbe6180
1 changed files with 0 additions and 9 deletions
|
@ -107,15 +107,6 @@ pub async fn swap(
|
|||
other => panic!("unexpected event: {:?}", other),
|
||||
};
|
||||
|
||||
swarm.request_amounts(alice.clone(), btc);
|
||||
|
||||
match swarm.next().await {
|
||||
OutEvent::Amounts(amounts) => {
|
||||
debug!("Got amounts from Alice: {:?}", amounts);
|
||||
}
|
||||
other => panic!("unexpected event: {:?}", other),
|
||||
};
|
||||
|
||||
let refund_address = bitcoin_wallet.new_address().await?;
|
||||
|
||||
// TODO: Pass this in using <R: RngCore + CryptoRng>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue