Skip to content

Commit

Permalink
remove redundant KeyOriginInfo access, already done in CreateSig
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed Nov 12, 2018
1 parent 6b8d0a2 commit f7beb95
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/script/sign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,7 @@ static bool GetPubKey(const SigningProvider& provider, SignatureData& sigdata, c
return true;
}
// Query the underlying provider
if (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;
return provider.GetPubKey(address, pubkey);
}

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)
Expand Down

0 comments on commit f7beb95

Please sign in to comment.