wip: Fix bug where bob was sending two amount request

This commit is contained in:
Lucas Soriano del Pino 2020-10-29 14:58:51 +11:00
parent 9f32cd988e
commit eb6bbe6180

View File

@ -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>