mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Merge 08ea835220 into merged_master (Bitcoin PR bitcoin/bitcoin#28583)
This commit is contained in:
commit
69492d27da
46 changed files with 165 additions and 164 deletions
|
|
@ -1907,7 +1907,7 @@ std::optional<MigrationData> LegacyScriptPubKeyMan::MigrateToDescriptor()
|
|||
std::string desc_str;
|
||||
bool watchonly = !desc->ToPrivateString(*this, desc_str);
|
||||
if (watchonly && !m_storage.IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)) {
|
||||
out.watch_descs.push_back({desc->ToString(), creation_time});
|
||||
out.watch_descs.emplace_back(desc->ToString(), creation_time);
|
||||
|
||||
// Get the scriptPubKeys without writing this to the wallet
|
||||
FlatSigningProvider provider;
|
||||
|
|
@ -1976,14 +1976,14 @@ std::optional<MigrationData> LegacyScriptPubKeyMan::MigrateToDescriptor()
|
|||
assert(IsMine(sh_spk) == ISMINE_NO && IsMine(witprog) == ISMINE_NO && IsMine(sh_wsh_spk) == ISMINE_NO);
|
||||
|
||||
std::unique_ptr<Descriptor> sh_desc = InferDescriptor(sh_spk, *GetSolvingProvider(sh_spk));
|
||||
out.solvable_descs.push_back({sh_desc->ToString(), creation_time});
|
||||
out.solvable_descs.emplace_back(sh_desc->ToString(), creation_time);
|
||||
|
||||
const auto desc = InferDescriptor(witprog, *this);
|
||||
if (desc->IsSolvable()) {
|
||||
std::unique_ptr<Descriptor> wsh_desc = InferDescriptor(witprog, *GetSolvingProvider(witprog));
|
||||
out.solvable_descs.push_back({wsh_desc->ToString(), creation_time});
|
||||
out.solvable_descs.emplace_back(wsh_desc->ToString(), creation_time);
|
||||
std::unique_ptr<Descriptor> sh_wsh_desc = InferDescriptor(sh_wsh_spk, *GetSolvingProvider(sh_wsh_spk));
|
||||
out.solvable_descs.push_back({sh_wsh_desc->ToString(), creation_time});
|
||||
out.solvable_descs.emplace_back(sh_wsh_desc->ToString(), creation_time);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue