Skip to content

Commit 8c8f82b

Browse files
committed
Move main PSBT input logic to helper
This avoids the clone of the PSBT when doing the check. Also fiddle with the checks that the checked function does a bit to make it easier to explain.
1 parent 2cc42cc commit 8c8f82b

File tree

2 files changed

+191
-169
lines changed

2 files changed

+191
-169
lines changed

integration_test/src/test_desc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use bitcoin::util::{psbt, sighash};
1313
use bitcoin::{self, Amount, OutPoint, SchnorrSig, Script, Transaction, TxIn, TxOut, Txid};
1414
use bitcoincore_rpc::{json, Client, RpcApi};
1515
use miniscript::miniscript::iter;
16-
use miniscript::psbt::PsbtExt;
16+
use miniscript::psbt::PsbtInputExt;
1717
use miniscript::{Descriptor, DescriptorTrait, Miniscript, ToPublicKey};
1818
use miniscript::{MiniscriptKey, ScriptContext};
1919
use std::collections::BTreeMap;

0 commit comments

Comments
 (0)