Skip to content

Commit 1a59b8f

Browse files
authored
Merge pull request #1618 from cyrossignol/fix/newbie-computer
Add missing condition for newbie accrual computer
2 parents 81f8eb5 + c66ba49 commit 1a59b8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/neuralnet/tally.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,10 @@ class NewbieAccrualComputer : public NullAccrualComputer
445445
constexpr int64_t six_months = ONE_DAY_IN_SECONDS * 30 * 6;
446446

447447
if (AccrualAge(account) >= six_months) {
448+
if (account.m_magnitude <= 0) {
449+
return 0;
450+
}
451+
448452
if (fDebug) {
449453
LogPrintf(
450454
"Accrual: %s Invalid Beacon, Using 0.01 age bootstrap",

0 commit comments

Comments
 (0)