Allow empty scriptPubKeys

This commit is contained in:
Andrew Chow 2021-04-16 16:00:08 -04:00
parent eeb6cf76e4
commit e9bfff25db
6 changed files with 15 additions and 13 deletions

View file

@ -2150,7 +2150,7 @@ TransactionError DescriptorScriptPubKeyMan::FillPSBT(PartiallySignedTransaction&
// Fill in the bip32 keypaths and redeemscripts for the outputs so that hardware wallets can identify change
for (unsigned int i = 0; i < psbtx.outputs.size(); ++i) {
std::unique_ptr<SigningProvider> keys = GetSolvingProvider(psbtx.outputs.at(i).script);
std::unique_ptr<SigningProvider> keys = GetSolvingProvider(*psbtx.outputs.at(i).script);
if (!keys) {
continue;
}