diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-07-21 11:28:33 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-07-21 11:28:35 +0200 |
commit | 65a54d684fcfa5b2cb15b09fd9be9acb56bb5f79 (patch) | |
tree | 601754fdfd11bb91a9a4005528328fd88cc6ae20 /src/validation.cpp | |
parent | ea595d39f7e782f53cd9403260c6c1d759d4a61a (diff) | |
parent | 5fa067a27d709a8a24b798cbd2459bf5b291c885 (diff) |
Merge #18984: Remove unnecessary input blockfile SetPos
5fa067a27d709a8a24b798cbd2459bf5b291c885 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 16d5194165c8c83492b95f431a664d98c40ff254.
ACKs for top commit:
LarryRuane:
ACK 5fa067a27d709a8a24b798cbd2459bf5b291c885
Tree-SHA512: 459cc7226e186c231ffb67f0613f550e8eb940f1b8933c3bc4a4e8dd519c8d5d45884e8cfd9347039dab90a093644bbbb31be063baed1c6fc7984b6cb4f17c9f
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 b90ff440be..4fe02ed244 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4708,7 +4708,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; |