From b96a1b53f834174edb8ec0fefcc7389cae78edd8 Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Fri, 1 Mar 2024 16:27:28 +0100 Subject: [PATCH] allow deprecated method calls in deprecated methods --- src/descriptor/mod.rs | 1 + src/descriptor/sh.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/descriptor/mod.rs b/src/descriptor/mod.rs index 08bb1e418..83031fb53 100644 --- a/src/descriptor/mod.rs +++ b/src/descriptor/mod.rs @@ -345,6 +345,7 @@ impl Descriptor { since = "10.0.0", note = "Use max_weight_to_satisfy instead. The method to count bytes was redesigned and the results will differ from max_weight_to_satisfy. For more details check rust-bitcoin/rust-miniscript#476." )] + #[allow(deprecated)] pub fn max_satisfaction_weight(&self) -> Result { let weight = match *self { Descriptor::Bare(ref bare) => bare.max_satisfaction_weight()?, diff --git a/src/descriptor/sh.rs b/src/descriptor/sh.rs index 133fd313d..c50f9c4bb 100644 --- a/src/descriptor/sh.rs +++ b/src/descriptor/sh.rs @@ -236,6 +236,7 @@ impl Sh { since = "10.0.0", note = "Use max_weight_to_satisfy instead. The method to count bytes was redesigned and the results will differ from max_weight_to_satisfy. For more details check rust-bitcoin/rust-miniscript#476." )] + #[allow(deprecated)] pub fn max_satisfaction_weight(&self) -> Result { Ok(match self.inner { // add weighted script sig, len byte stays the same