mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-09-06 21:51:04 +02:00
remove redundant KeyOriginInfo access, already done in CreateSig
This commit is contained in:
@@ -63,14 +63,7 @@ static bool GetPubKey(const SigningProvider& provider, SignatureData& sigdata, c
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// Query the underlying provider
|
// Query the underlying provider
|
||||||
if (provider.GetPubKey(address, pubkey)) {
|
return provider.GetPubKey(address, pubkey);
|
||||||
KeyOriginInfo info;
|
|
||||||
if (provider.GetKeyOrigin(address, info)) {
|
|
||||||
sigdata.misc_pubkeys.emplace(address, std::make_pair(pubkey, std::move(info)));
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool CreateSig(const BaseSignatureCreator& creator, SignatureData& sigdata, const SigningProvider& provider, std::vector<unsigned char>& sig_out, const CPubKey& pubkey, const CScript& scriptcode, SigVersion sigversion)
|
static bool CreateSig(const BaseSignatureCreator& creator, SignatureData& sigdata, const SigningProvider& provider, std::vector<unsigned char>& sig_out, const CPubKey& pubkey, const CScript& scriptcode, SigVersion sigversion)
|
||||||
|
Reference in New Issue
Block a user