Skip to content

Commit 605b0ea

Browse files
committed
Ensure start-up aborts if the snapshot system fails to bootstrap
1 parent beed805 commit 605b0ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/neuralnet/tally.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,9 @@ bool Tally::Initialize(CBlockIndex* pindex)
539539

540540
for (; pindex; pindex = pindex->pnext) {
541541
if (pindex->nHeight + 1 == GetV11Threshold()) {
542-
ActivateSnapshotAccrual(pindex);
542+
if (!ActivateSnapshotAccrual(pindex)) {
543+
return false;
544+
}
543545
}
544546

545547
if (pindex->nResearchSubsidy <= 0) {

0 commit comments

Comments
 (0)