You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WalletLogPrintf("Performing wallet upgrade to %i\n", FEATURE_LATEST);
3197
-
version = FEATURE_LATEST;
3198
-
} else {
3199
-
WalletLogPrintf("Allowing wallet upgrade up to %i\n", version);
3200
-
}
3201
-
if (version < prev_version) {
3202
-
error = strprintf(_("Cannot downgrade wallet from version %i to version %i. Wallet version unchanged."), prev_version, version);
3203
-
returnfalse;
3204
-
}
3205
-
3206
-
LOCK(cs_wallet);
3207
-
3208
-
// Do not upgrade versions to any version between HD_SPLIT and FEATURE_PRE_SPLIT_KEYPOOL unless already supporting HD_SPLIT
3209
-
if (!CanSupportFeature(FEATURE_HD_SPLIT) && version >= FEATURE_HD_SPLIT && version < FEATURE_PRE_SPLIT_KEYPOOL) {
3210
-
error = strprintf(_("Cannot upgrade a non HD split wallet from version %i to version %i without upgrading to support pre-split keypool. Please use version %i or no version specified."), prev_version, version, FEATURE_PRE_SPLIT_KEYPOOL);
3211
-
returnfalse;
3212
-
}
3213
-
3214
-
// Permanently upgrade to the version
3215
-
SetMinVersion(GetClosestWalletFeature(version));
3216
-
3217
-
for (auto spk_man : GetActiveScriptPubKeyMans()) {
3218
-
if (!spk_man->Upgrade(prev_version, version, error)) {
3219
-
returnfalse;
3220
-
}
3221
-
}
3222
-
returntrue;
3223
-
}
3224
-
3225
3192
voidCWallet::postInitProcess()
3226
3193
{
3227
3194
// Add wallet transactions that aren't already in a block to mempool
0 commit comments