Remove dead code

This commit is contained in:
Thomas Eizinger 2021-03-18 18:09:30 +11:00
parent 16dfea035b
commit f49f8977d3
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -588,18 +588,6 @@ impl State6 {
Ok(()) Ok(())
} }
pub async fn wait_for_cancel_timelock_to_expire(
&self,
bitcoin_wallet: &bitcoin::Wallet,
) -> Result<()> {
bitcoin_wallet
.watch_until_status(&self.tx_lock, |status| {
status.is_confirmed_with(self.cancel_timelock)
})
.await?;
Ok(())
}
pub fn tx_lock_id(&self) -> bitcoin::Txid { pub fn tx_lock_id(&self) -> bitcoin::Txid {
self.tx_lock.txid() self.tx_lock.txid()
} }