Currently max_satisfaction_weight is deprecated only for:
- Generic
Descriptor
|
#[deprecated(note = "use max_weight_to_satisfy instead")] |
|
#[allow(deprecated)] |
|
pub fn max_satisfaction_weight(&self) -> Result<usize, Error> { |
Bare
|
#[deprecated(note = "use max_weight_to_satisfy instead")] |
|
pub fn max_satisfaction_weight(&self) -> Result<usize, Error> { |
Sh
|
#[deprecated(note = "use max_weight_to_satisfy instead")] |
|
#[allow(deprecated)] |
|
pub fn max_satisfaction_weight(&self) -> Result<usize, Error> { |
Wsh
|
#[deprecated(note = "use max_weight_to_satisfy instead")] |
|
pub fn max_satisfaction_weight(&self) -> Result<usize, Error> { |
tr
|
#[deprecated(note = "use max_weight_to_satisfy instead")] |
|
pub fn max_satisfaction_weight(&self) -> Result<usize, Error> { |
but not for:
Pkh:
|
/// Computes an upper bound on the weight of a satisfying witness to the |
|
/// transaction. |
|
/// |
|
/// Assumes all ec-signatures are 73 bytes, including push opcode and |
|
/// sighash suffix. Includes the weight of the VarInts encoding the |
|
/// scriptSig and witness stack length. |
|
pub fn max_satisfaction_weight(&self) -> usize { 4 * (1 + 73 + BareCtx::pk_len(&self.pk)) } |
Wpkh:
|
/// Computes an upper bound on the weight of a satisfying witness to the |
|
/// transaction. |
|
/// |
|
/// Assumes all ec-signatures are 73 bytes, including push opcode and |
|
/// sighash suffix. Includes the weight of the VarInts encoding the |
|
/// scriptSig and witness stack length. |
|
pub fn max_satisfaction_weight(&self) -> usize { 4 + 1 + 73 + Segwitv0::pk_len(&self.pk) } |
Is this the intended behavior?
If not, I can easily (and gladly) open a PR to add deprecation notices to Pkh and Wpkh.
Cc @evanlinjin who originally deprecated these.
Related bitcoindevkit/bdk#1036
Currently
max_satisfaction_weightis deprecated only for:Descriptorrust-miniscript/src/descriptor/mod.rs
Lines 344 to 346 in 469c113
Barerust-miniscript/src/descriptor/bare.rs
Lines 86 to 87 in 469c113
Shrust-miniscript/src/descriptor/sh.rs
Lines 235 to 237 in 469c113
Wshrust-miniscript/src/descriptor/segwitv0.rs
Lines 104 to 105 in 469c113
trrust-miniscript/src/descriptor/tr.rs
Lines 312 to 313 in 469c113
but not for:
Pkh:rust-miniscript/src/descriptor/bare.rs
Lines 250 to 256 in 469c113
Wpkh:rust-miniscript/src/descriptor/segwitv0.rs
Lines 357 to 363 in 469c113
Is this the intended behavior?
If not, I can easily (and gladly) open a PR to add deprecation notices to
PkhandWpkh.Cc @evanlinjin who originally deprecated these.
Related bitcoindevkit/bdk#1036