mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-25 17:11:22 -05:00
wip: Fix bug where bob was sending two amount request
This commit is contained in:
parent
9f32cd988e
commit
eb6bbe6180
@ -107,15 +107,6 @@ pub async fn swap(
|
|||||||
other => panic!("unexpected event: {:?}", other),
|
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?;
|
let refund_address = bitcoin_wallet.new_address().await?;
|
||||||
|
|
||||||
// TODO: Pass this in using <R: RngCore + CryptoRng>
|
// TODO: Pass this in using <R: RngCore + CryptoRng>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user