aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorTom Harding <tomh@thinlink.com>2020-05-15 12:19:10 -0700
committerGitHub <noreply@github.com>2020-05-15 12:19:10 -0700
commit5fa067a27d709a8a24b798cbd2459bf5b291c885 (patch)
tree98fde6b8bbe7e505e3628220e73b5790495860f7 /src/validation.cpp
parent951870807ea28e05cf074e364e1b55e985ab9f6d (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.cpp1
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;