From eb6bbe6180bede2fc9097e5f8f38b201610af7db Mon Sep 17 00:00:00 2001 From: Lucas Soriano del Pino Date: Thu, 29 Oct 2020 14:58:51 +1100 Subject: [PATCH] wip: Fix bug where bob was sending two amount request --- swap/src/bob.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/swap/src/bob.rs b/swap/src/bob.rs index a09e99b6..524948a7 100644 --- a/swap/src/bob.rs +++ b/swap/src/bob.rs @@ -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