CWallet::Create move chain init message up into calling code

This commit is contained in:
Ivan Metlushko
2020-12-16 22:41:43 +01:00
parent 44c430ffac
commit d73ae93964
2 changed files with 3 additions and 2 deletions

View File

@@ -105,6 +105,7 @@ bool LoadWallets(interfaces::Chain& chain)
if (!database && status == DatabaseStatus::FAILED_NOT_FOUND) {
continue;
}
chain.initMessage(_("Loading wallet...").translated);
std::shared_ptr<CWallet> pwallet = database ? CWallet::Create(chain, name, std::move(database), options.create_flags, error, warnings) : nullptr;
if (!warnings.empty()) chain.initWarning(Join(warnings, Untranslated("\n")));
if (!pwallet) {