After #1533 we fail to call check_wallet_descriptor in all arms of a match block during load, but this was correct in v1.0.0-beta.1. Also, we apparently never apply the check during new wallet creation.
|
// parameters must match |
|
Some(make_desc) => { |
|
let (exp_desc, keymap) = |
|
make_desc(&secp, network).map_err(LoadError::Descriptor)?; |
|
if desc.descriptor_id() != exp_desc.descriptor_id() { |
|
return Err(LoadError::Mismatch(LoadMismatch::Descriptor { |
|
keychain: KeychainKind::Internal, |
|
loaded: Some(desc), |
|
expected: Some(exp_desc), |
|
})); |
|
} |
After #1533 we fail to call
check_wallet_descriptorin all arms of a match block during load, but this was correct in v1.0.0-beta.1. Also, we apparently never apply the check during new wallet creation.bdk/crates/wallet/src/wallet/mod.rs
Lines 585 to 595 in 76aec62