Skip to content

Commit

Permalink
Merge pull request #39 from volbil/rabbit
Browse files Browse the repository at this point in the history
Fix for address index issue
  • Loading branch information
volbil authored Apr 19, 2021
2 parents 8e3c371 + 4a51f38 commit 65e99c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 4)
define(_CLIENT_VERSION_MINOR, 0)
define(_CLIENT_VERSION_REVISION, 2)
define(_CLIENT_VERSION_REVISION, 3)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_RC, 0)
define(_CLIENT_VERSION_IS_RELEASE, true)
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4539,7 +4539,7 @@ bool static LoadBlockIndexDB(std::string& strError)
if(fReindexing) fReindex = true;

// Check whether we have an address index
pblocktree->ReadFlag("addressindex", fAddressIndex);
pblocktree->ReadFlag("addrindex", fAddressIndex);
LogPrintf("%s: address index %s\n", __func__, fAddressIndex ? "enabled" : "disabled");

// Check whether we have a timestamp index
Expand Down Expand Up @@ -4722,7 +4722,7 @@ bool InitBlockIndex()

// Use the provided setting for -addressindex in the new database
fAddressIndex = GetBoolArg("-addressindex", DEFAULT_ADDRESSINDEX);
pblocktree->WriteFlag("addressindex", fAddressIndex);
pblocktree->WriteFlag("addrindex", fAddressIndex);

// Use the provided setting for -timestampindex in the new database
fTimestampIndex = GetBoolArg("-timestampindex", DEFAULT_TIMESTAMPINDEX);
Expand Down

0 comments on commit 65e99c7

Please sign in to comment.