Skip to content

Commit 5fa067a

Browse files
authored
Remove unnecessary blockfile SetPos
Nothing could have changed the position since we retrieved it a few statements earlier. This dates from commit 16d5194.
1 parent 9518708 commit 5fa067a

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
@@ -4685,7 +4685,6 @@ void LoadExternalBlockFile(const CChainParams& chainparams, FILE* fileIn, FlatFi
46854685
if (dbp)
46864686
dbp->nPos = nBlockPos;
46874687
blkdat.SetLimit(nBlockPos + nSize);
4688-
blkdat.SetPos(nBlockPos);
46894688
std::shared_ptr<CBlock> pblock = std::make_shared<CBlock>();
46904689
CBlock& block = *pblock;
46914690
blkdat >> block;

0 commit comments

Comments
 (0)