Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 4,486 Lines • ▼ Show 20 Lines | if (nLoadWalletRet != DBErrors::LOAD_OK) { | ||||
InitWarning(strprintf( | InitWarning(strprintf( | ||||
_("Error reading %s! All keys read correctly, but transaction " | _("Error reading %s! All keys read correctly, but transaction " | ||||
"data" | "data" | ||||
" or address book entries might be missing or incorrect."), | " or address book entries might be missing or incorrect."), | ||||
walletFile)); | walletFile)); | ||||
} else if (nLoadWalletRet == DBErrors::TOO_NEW) { | } else if (nLoadWalletRet == DBErrors::TOO_NEW) { | ||||
InitError(strprintf( | InitError(strprintf( | ||||
_("Error loading %s: Wallet requires newer version of %s"), | _("Error loading %s: Wallet requires newer version of %s"), | ||||
walletFile, _(PACKAGE_NAME))); | walletFile, PACKAGE_NAME)); | ||||
return nullptr; | return nullptr; | ||||
} else if (nLoadWalletRet == DBErrors::NEED_REWRITE) { | } else if (nLoadWalletRet == DBErrors::NEED_REWRITE) { | ||||
InitError(strprintf( | InitError(strprintf( | ||||
_("Wallet needed to be rewritten: restart %s to complete"), | _("Wallet needed to be rewritten: restart %s to complete"), | ||||
_(PACKAGE_NAME))); | PACKAGE_NAME)); | ||||
return nullptr; | return nullptr; | ||||
} else { | } else { | ||||
InitError(strprintf(_("Error loading %s"), walletFile)); | InitError(strprintf(_("Error loading %s"), walletFile)); | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
} | } | ||||
int prev_version = walletInstance->nWalletVersion; | int prev_version = walletInstance->nWalletVersion; | ||||
▲ Show 20 Lines • Show All 459 Lines • Show Last 20 Lines |