Skip to content

Commit

Permalink
Ensure start-up aborts if the snapshot system fails to bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrossignol committed Jun 16, 2020
1 parent beed805 commit 605b0ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/neuralnet/tally.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,9 @@ bool Tally::Initialize(CBlockIndex* pindex)

for (; pindex; pindex = pindex->pnext) {
if (pindex->nHeight + 1 == GetV11Threshold()) {
ActivateSnapshotAccrual(pindex);
if (!ActivateSnapshotAccrual(pindex)) {
return false;
}
}

if (pindex->nResearchSubsidy <= 0) {
Expand Down

0 comments on commit 605b0ea

Please sign in to comment.