Merge 65a54d684f into merged_master (Bitcoin PR #18984)

This commit is contained in:
Andrew Poelstra 2020-11-26 14:41:58 +00:00
commit 16a46e7c34

View file

@ -5045,7 +5045,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;