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);
3202
-
version = FEATURE_LATEST;
3203
-
} else {
3204
-
WalletLogPrintf("Allowing wallet upgrade up to %i\n", version);
3205
-
}
3206
-
if (version < prev_version) {
3207
-
error = strprintf(_("Cannot downgrade wallet from version %i to version %i. Wallet version unchanged."), prev_version, version);
3208
-
returnfalse;
3209
-
}
3210
-
3211
-
LOCK(cs_wallet);
3212
-
3213
-
// Do not upgrade versions to any version between HD_SPLIT and FEATURE_PRE_SPLIT_KEYPOOL unless already supporting HD_SPLIT
3214
-
if (!CanSupportFeature(FEATURE_HD_SPLIT) && version >= FEATURE_HD_SPLIT && version < FEATURE_PRE_SPLIT_KEYPOOL) {
3215
-
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);
3216
-
returnfalse;
3217
-
}
3218
-
3219
-
// Permanently upgrade to the version
3220
-
SetMinVersion(GetClosestWalletFeature(version));
3221
-
3222
-
for (auto spk_man : GetActiveScriptPubKeyMans()) {
3223
-
if (!spk_man->Upgrade(prev_version, version, error)) {
3224
-
returnfalse;
3225
-
}
3226
-
}
3227
-
returntrue;
3228
-
}
3229
-
3230
3197
voidCWallet::postInitProcess()
3231
3198
{
3232
3199
// Add wallet transactions that aren't already in a block to mempool
0 commit comments