Remove unnecessary blockfile SetPos

Nothing could have changed the position since we retrieved it a few statements earlier. This dates from commit 16d5194165c8c83492b95f431a664d98c40ff254.
This commit is contained in:
Tom Harding 2020-05-15 12:19:10 -07:00 committed by GitHub
parent 951870807e
commit 5fa067a27d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4685,7 +4685,6 @@ void LoadExternalBlockFile(const CChainParams& chainparams, FILE* fileIn, FlatFi
if (dbp)
dbp->nPos = nBlockPos;
blkdat.SetLimit(nBlockPos + nSize);
blkdat.SetPos(nBlockPos);
std::shared_ptr<CBlock> pblock = std::make_shared<CBlock>();
CBlock& block = *pblock;
blkdat >> block;