Skip to content

Commit 65a54d6

Browse files
author
MarcoFalke
committed
Merge #18984: Remove unnecessary input blockfile SetPos
5fa067a Remove unnecessary blockfile SetPos (Tom Harding) Pull request description: Nothing could have changed the position since we retrieved it a few statements earlier. This dates from commit 16d5194. ACKs for top commit: LarryRuane: ACK 5fa067a Tree-SHA512: 459cc7226e186c231ffb67f0613f550e8eb940f1b8933c3bc4a4e8dd519c8d5d45884e8cfd9347039dab90a093644bbbb31be063baed1c6fc7984b6cb4f17c9f
2 parents ea595d3 + 5fa067a commit 65a54d6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/validation.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4708,7 +4708,6 @@ void LoadExternalBlockFile(const CChainParams& chainparams, FILE* fileIn, FlatFi
47084708
if (dbp)
47094709
dbp->nPos = nBlockPos;
47104710
blkdat.SetLimit(nBlockPos + nSize);
4711-
blkdat.SetPos(nBlockPos);
47124711
std::shared_ptr<CBlock> pblock = std::make_shared<CBlock>();
47134712
CBlock& block = *pblock;
47144713
blkdat >> block;

0 commit comments

Comments
 (0)