mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-11 23:49:41 -05:00
Rename fn param to correctly reflect underlying type
This commit is contained in:
parent
752e5be8f3
commit
458a8d594a
@ -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…
Reference in New Issue
Block a user