Skip to content

Commit 57348f4

Browse files
committed
Put accrual logging in tally
This is to pin down the value of g_newbie_snapshot_fix_enabled.
1 parent 774638b commit 57348f4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/gridcoin/tally.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,13 @@ bool Tally::Initialize(CBlockIndex* pindex)
787787

788788
g_newbie_snapshot_fix_enabled = pindex->nHeight + 1 >= GetNewbieSnapshotFixHeight();
789789

790+
LogPrint(BCLog::LogFlags::ACCRUAL, "INFO %s: pindex->nHeight + 1 = %i, GetNewbieSnapshotFixHeight() = %i,"
791+
"g_newbie_snapshot_fix_enabled = %i",
792+
__func__,
793+
pindex->nHeight + 1,
794+
GetNewbieSnapshotFixHeight(),
795+
g_newbie_snapshot_fix_enabled);
796+
790797
const int64_t start_time = GetTimeMillis();
791798

792799
g_researcher_tally.Initialize(pindex, Quorum::CurrentSuperblock());

0 commit comments

Comments
 (0)