From 4770751e166e844914d22e8cc8f259c8f968d768 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Mon, 27 Dec 2021 11:18:59 +0300 Subject: [PATCH] Deinit active branch first --- src/txdb-leveldb.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/txdb-leveldb.cpp b/src/txdb-leveldb.cpp index f68c537..fb4b13f 100644 --- a/src/txdb-leveldb.cpp +++ b/src/txdb-leveldb.cpp @@ -95,10 +95,10 @@ CTxDB::CTxDB(const char* pszMode) printf("Required index version is %d, removing old database\n", DATABASE_VERSION); // Leveldb instance destruction - delete txdb; - txdb = pdb = NULL; delete activeBatch; activeBatch = NULL; + delete txdb; + txdb = pdb = NULL; init_blockindex(options, true); // Remove directory and create new database pdb = txdb; -- 1.7.1