Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 5,291 Lines • ▼ Show 20 Lines | try { | ||||
try { | try { | ||||
// read block | // read block | ||||
uint64_t nBlockPos = blkdat.GetPos(); | uint64_t nBlockPos = blkdat.GetPos(); | ||||
if (dbp) { | if (dbp) { | ||||
dbp->nPos = nBlockPos; | dbp->nPos = nBlockPos; | ||||
} | } | ||||
blkdat.SetLimit(nBlockPos + nSize); | blkdat.SetLimit(nBlockPos + nSize); | ||||
blkdat.SetPos(nBlockPos); | |||||
std::shared_ptr<CBlock> pblock = std::make_shared<CBlock>(); | std::shared_ptr<CBlock> pblock = std::make_shared<CBlock>(); | ||||
CBlock &block = *pblock; | CBlock &block = *pblock; | ||||
blkdat >> block; | blkdat >> block; | ||||
nRewind = blkdat.GetPos(); | nRewind = blkdat.GetPos(); | ||||
const BlockHash hash = block.GetHash(); | const BlockHash hash = block.GetHash(); | ||||
{ | { | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
▲ Show 20 Lines • Show All 811 Lines • Show Last 20 Lines |