Skip to content

Commit

Permalink
consensus: don't call GetBlockPos in ReadBlockFromDisk without lock
Browse files Browse the repository at this point in the history
Github-Pull: bitcoin#22895
Rebased-From: 350e034 (diff-minimised)
  • Loading branch information
jonatack authored and luke-jr committed Sep 20, 2021
1 parent 42af959 commit 94c0468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/blockstorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex, const Consensus
}
if (block.GetHash() != pindex->GetBlockHash()) {
return error("ReadBlockFromDisk(CBlock&, CBlockIndex*): GetHash() doesn't match index for %s at %s",
pindex->ToString(), pindex->GetBlockPos().ToString());
pindex->ToString(), blockPos.ToString());
}
return true;
}
Expand Down

0 comments on commit 94c0468

Please sign in to comment.