aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorGregory Sanders <gsanders87@gmail.com>2018-11-07 10:50:32 -0500
committerGregory Sanders <gsanders87@gmail.com>2018-11-12 13:17:49 -0500
commitf7beb95a1f921ed292680fbd2f042b4bac73bf59 (patch)
tree02e0664a246230fc8902cf3cf1d144dfe58c4d2d /src/script
parent6b8d0a2164b30eab76e7bccb1ffb056a10fba406 (diff)
remove redundant KeyOriginInfo access, already done in CreateSig
Diffstat (limited to 'src/script')
-rw-r--r--src/script/sign.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/script/sign.cpp b/src/script/sign.cpp
index 89cc7c808c..47114d2e2a 100644
--- a/src/script/sign.cpp
+++ b/src/script/sign.cpp
@@ -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)