Skip to content

Commit d3e29d8

Browse files
committed
Merge rust-bitcoin/rust-miniscript#648: allow deprecated method calls in deprecated methods
b96a1b53f834174edb8ec0fefcc7389cae78edd8 allow deprecated method calls in deprecated methods (Riccardo Casatta) Pull request description: instead of rust-bitcoin/rust-miniscript#647 ACKs for top commit: apoelstra: ACK b96a1b53f834174edb8ec0fefcc7389cae78edd8 Tree-SHA512: 9afe29493db61e1a1251adcec286ed23fc989f6379e28476f8e38624027b14bc29922385f2b8baa1f2fec93afe534c8e68d429f8619c01be751b3f44c65b33b7
2 parents ce33767 + 2c94487 commit d3e29d8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/descriptor/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ impl<Pk: MiniscriptKey> Descriptor<Pk> {
345345
since = "10.0.0",
346346
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."
347347
)]
348+
#[allow(deprecated)]
348349
pub fn max_satisfaction_weight(&self) -> Result<usize, Error> {
349350
let weight = match *self {
350351
Descriptor::Bare(ref bare) => bare.max_satisfaction_weight()?,

src/descriptor/sh.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ impl<Pk: MiniscriptKey> Sh<Pk> {
236236
since = "10.0.0",
237237
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."
238238
)]
239+
#[allow(deprecated)]
239240
pub fn max_satisfaction_weight(&self) -> Result<usize, Error> {
240241
Ok(match self.inner {
241242
// add weighted script sig, len byte stays the same

0 commit comments

Comments
 (0)