mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-20 07:56:05 -04:00
Update swap/src/bitcoin/wallet.rs
Co-authored-by: Byron Hambly <byron@hambly.dev>
This commit is contained in:
parent
b8bd2fa0e8
commit
488c9a99e2
@ -972,8 +972,7 @@ impl ScriptStatus {
|
||||
// Calculate the number of blocks left until the target is met.
|
||||
pub fn blocks_left_until<T>(&self, target: T) -> u32
|
||||
where
|
||||
T: Into<u32>,
|
||||
T: Copy,
|
||||
T: Into<u32> + Copy,
|
||||
{
|
||||
match self {
|
||||
ScriptStatus::Confirmed(inner) => inner.blocks_left_until(target),
|
||||
|
Loading…
x
Reference in New Issue
Block a user