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