Keep full pubkeys in FlatSigningProvider::origins

This commit is contained in:
Pieter Wuille
2019-04-04 12:45:32 -07:00
parent daef20fb50
commit 9a93c91c88
5 changed files with 13 additions and 7 deletions

View File

@@ -436,7 +436,7 @@ public:
pubkeys.reserve(entries.size());
for (auto& entry : entries) {
pubkeys.push_back(entry.first);
out.origins.emplace(entry.first.GetID(), std::move(entry.second));
out.origins.emplace(entry.first.GetID(), std::make_pair<CPubKey, KeyOriginInfo>(CPubKey(entry.first), std::move(entry.second)));
}
if (m_script_arg) {
for (const auto& subscript : subscripts) {