This commit is contained in:
davemo88 2021-03-16 10:20:07 -04:00
parent cc17ac8859
commit e82dfa971e
No known key found for this signature in database
GPG Key ID: 2DE8C063FF02FB83

View File

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