wip: Fix bug where bob was sending two amount request

pull/30/head
Lucas Soriano del Pino 4 years ago
parent 9f32cd988e
commit eb6bbe6180

@ -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…
Cancel
Save