policy: Build SatisfiableItem::*Signature based on the context

Also refactor our code to lookup signatures in PSBTs to use the context
This commit is contained in:
Alekos Filini
2022-05-24 11:24:48 +02:00
parent ff1abc63e0
commit 572c3ee70d
2 changed files with 123 additions and 66 deletions

View File

@@ -4223,7 +4223,7 @@ pub(crate) mod test {
let (wallet, _, _) = get_funded_wallet(get_test_tr_repeated_key());
let addr = wallet.get_address(AddressIndex::New).unwrap();
let path = vec![("u6ugnnck".to_string(), vec![0])]
let path = vec![("rn4nre9c".to_string(), vec![0])]
.into_iter()
.collect();