…
This is a fix for #14415
81 if (it != sigdata.signatures.end()) {
82 sig_out = it->second.second;
83 return true;
84 }
85- CPubKey pubkey;
86- GetPubKey(provider, sigdata, keyid, pubkey);
GetPubKey
helper function to find out which public keys are used and to add the public key to a SignatureData
object. The public keys are taken from the sigdata after ProduceSignature
is done and moved into the PSBT. Without this call to GetPubKey
, the pubkeys that were needed during signing are not added to the sigdata and thus not added to the PSBT. This causes the test to fail (and further breaks PSBT updating) as public keys that are watch only are not being added to the PSBT.