diff options
author | Tom Harding <tomh@thinlink.com> | 2020-05-15 12:19:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-15 12:19:10 -0700 |
commit | 5fa067a27d709a8a24b798cbd2459bf5b291c885 (patch) | |
tree | 98fde6b8bbe7e505e3628220e73b5790495860f7 /src/validation.cpp | |
parent | 951870807ea28e05cf074e364e1b55e985ab9f6d (diff) |
Remove unnecessary blockfile SetPos
Nothing could have changed the position since we retrieved it a few statements earlier. This dates from commit 16d5194165c8c83492b95f431a664d98c40ff254.
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 8a454c8d1b..056a51cf65 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -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; |