From 8d9d2322abffe97f86d45994fdb65da4817a2b1c Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Fri, 18 Jun 2021 11:57:39 -0400 Subject: [PATCH] Log stats height vs node local height --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 953a2c1d3..76300e1a6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4660,7 +4660,8 @@ bool ReceivedBlockTransactions(const CBlock &block, CValidationState& state, CBl pindex->pprev->nChainShieldedOutputs = zstats.nChainShieldedOutputs; if (pindex->pprev->nChainShieldedSpends == 0) { pindex->pprev->nChainShieldedSpends = zstats.nChainShieldedSpends; - fprintf(stderr, "%s: loaded anonset=%li from disk\n", __func__, zstats.nChainShieldedOutputs - zstats.nChainShieldedSpends); + // TODO: if zstats.nHeight != chainActive.Height() the stats will be off + fprintf(stderr, "%s: loaded anonset=%li at stats height=%li vs local height=%d from disk\n", __func__, zstats.nChainShieldedOutputs - zstats.nChainShieldedSpends, zstats.nHeight, chainActive.Height() ); } if (pindex->pprev->nChainFullyShieldedTx == 0) pindex->pprev->nChainFullyShieldedTx = zstats.nChainFullyShieldedTx;