Skip to content

Commit f7beb95

Browse files
committed
remove redundant KeyOriginInfo access, already done in CreateSig
1 parent 6b8d0a2 commit f7beb95

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/script/sign.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,7 @@ static bool GetPubKey(const SigningProvider& provider, SignatureData& sigdata, c
6363
return true;
6464
}
6565
// Query the underlying provider
66-
if (provider.GetPubKey(address, pubkey)) {
67-
KeyOriginInfo info;
68-
if (provider.GetKeyOrigin(address, info)) {
69-
sigdata.misc_pubkeys.emplace(address, std::make_pair(pubkey, std::move(info)));
70-
}
71-
return true;
72-
}
73-
return false;
66+
return provider.GetPubKey(address, pubkey);
7467
}
7568

7669
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)

0 commit comments

Comments
 (0)