mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-27 19:20:32 -05:00
Merge #536
536: Switch to using stable Rust instead of nightly r=thomaseizinger a=thomaseizinger Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
This commit is contained in:
commit
baf5a0896e
11 changed files with 68 additions and 62 deletions
|
|
@ -353,7 +353,7 @@ async fn register_tor_services(
|
|||
}
|
||||
})
|
||||
})
|
||||
.filter_map(|details| details)
|
||||
.flatten()
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
let key = seed.derive_torv3_key();
|
||||
|
|
|
|||
|
|
@ -17,18 +17,6 @@ impl From<BlockHeight> for u32 {
|
|||
}
|
||||
}
|
||||
|
||||
impl BlockHeight {
|
||||
pub const fn new(block_height: u32) -> Self {
|
||||
Self(block_height)
|
||||
}
|
||||
pub const fn checked_sub(self, rhs: Self) -> Option<Self> {
|
||||
match self.0.checked_sub(rhs.0) {
|
||||
Some(result) => Some(BlockHeight(result)),
|
||||
None => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl TryFrom<HeaderNotification> for BlockHeight {
|
||||
type Error = anyhow::Error;
|
||||
|
||||
|
|
|
|||
|
|
@ -314,8 +314,8 @@ impl State2 {
|
|||
|
||||
let tx_cancel_sig = self.a.sign(tx_cancel.digest());
|
||||
Message3 {
|
||||
tx_refund_encsig,
|
||||
tx_cancel_sig,
|
||||
tx_refund_encsig,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue