From 458a8d594a47f0d2d4109ea1c746768606b4bad2 Mon Sep 17 00:00:00 2001 From: rishflab Date: Thu, 11 Mar 2021 16:58:46 +1100 Subject: [PATCH] Rename fn param to correctly reflect underlying type --- swap/src/bitcoin.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swap/src/bitcoin.rs b/swap/src/bitcoin.rs index 03966199..b527ed9b 100644 --- a/swap/src/bitcoin.rs +++ b/swap/src/bitcoin.rs @@ -210,10 +210,10 @@ pub fn recover(S: PublicKey, sig: Signature, encsig: EncryptedSignature) -> Resu } pub async fn poll_until_block_height_is_gte( - client: &crate::bitcoin::Wallet, + wallet: &crate::bitcoin::Wallet, target: BlockHeight, ) -> Result<()> { - while client.get_block_height().await? < target { + while wallet.get_block_height().await? < target { tokio::time::sleep(std::time::Duration::from_secs(1)).await; } Ok(())