Skip to content

Commit f943cbb

Browse files
committed
BUG: set g_IsSaplingActive to true if --reindex
1 parent 94c182e commit f943cbb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/init.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,6 +1470,9 @@ bool AppInit2()
14701470

14711471
fReindex = gArgs.GetBoolArg("-reindex", false);
14721472

1473+
// Assume sapling active during reindex for proper v2 deserialization when loading the wallet
1474+
if (fReindex) g_IsSaplingActive = true;
1475+
14731476
// Create blocks directory if it doesn't already exist
14741477
fs::create_directories(GetDataDir() / "blocks");
14751478

0 commit comments

Comments
 (0)