Skip to content

Commit

Permalink
Merge pull request #17 from Krestol/master
Browse files Browse the repository at this point in the history
I fixed Error initializing block database.
  • Loading branch information
phoenixkonsole committed Sep 29, 2020
2 parents a876263 + 3a30762 commit df3ddff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/txdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ bool CBlockTreeDB::LoadBlockIndexGuts(const Consensus::Params& consensusParams,
CDiskBlockIndex diskindex;
if (pcursor->GetValue(diskindex)) {
// Construct block index object
CBlockIndex* pindexNew = insertBlockIndex(diskindex.GetBlockHash());
CBlockIndex* pindexNew = insertBlockIndex(key.second);
pindexNew->pprev = insertBlockIndex(diskindex.hashPrev);
pindexNew->nHeight = diskindex.nHeight;
pindexNew->nFile = diskindex.nFile;
Expand Down

0 comments on commit df3ddff

Please sign in to comment.