brevity
This commit is contained in:
parent
cc17ac8859
commit
e82dfa971e
@ -1322,14 +1322,11 @@ where
|
|||||||
) -> Result<Input, Error> {
|
) -> Result<Input, Error> {
|
||||||
// Try to find the prev_script in our db to figure out if this is internal or external,
|
// Try to find the prev_script in our db to figure out if this is internal or external,
|
||||||
// and the derivation index
|
// and the derivation index
|
||||||
let (keychain, child) = match self
|
let (keychain, child) = self
|
||||||
.database
|
.database
|
||||||
.borrow()
|
.borrow()
|
||||||
.get_path_from_script_pubkey(&utxo.txout.script_pubkey)?
|
.get_path_from_script_pubkey(&utxo.txout.script_pubkey)?
|
||||||
{
|
.ok_or(Error::UnknownUTXO)?;
|
||||||
Some(x) => x,
|
|
||||||
None => return Err(Error::UnknownUTXO),
|
|
||||||
};
|
|
||||||
|
|
||||||
let mut psbt_input = Input {
|
let mut psbt_input = Input {
|
||||||
sighash_type,
|
sighash_type,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user