Rename fn param to correctly reflect underlying type

pull/307/head
rishflab 3 years ago committed by Thomas Eizinger
parent 752e5be8f3
commit 458a8d594a
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

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

Loading…
Cancel
Save