metrics: Remove zcash.sync.* metrics

- zcash.sync.block.downloaded.total is redundant, and can be replaced by
  zcash.net.in.messages[command=block].
- zcash.sync.block.verified.total and zcash.chain.verified.block.total
  are identical for us, because we verify blocks synchronously.
This commit is contained in:
Jack Grigg 2021-03-14 12:00:37 +13:00
parent e2e5df28a9
commit 0cab2e7094
1 changed files with 0 additions and 3 deletions

View File

@ -6287,7 +6287,6 @@ bool static ProcessMessage(const CChainParams& chainparams, CNode* pfrom, string
CInv inv(MSG_BLOCK, block.GetHash());
LogPrint("net", "received block %s peer=%d\n", inv.hash.ToString(), pfrom->id);
MetricsIncrementCounter("zcash.sync.block.downloaded.total");
pfrom->AddInventoryKnown(inv);
@ -6306,8 +6305,6 @@ bool static ProcessMessage(const CChainParams& chainparams, CNode* pfrom, string
LOCK(cs_main);
Misbehaving(pfrom->GetId(), nDoS);
}
} else if (state.IsValid()) {
MetricsIncrementCounter("zcash.sync.block.verified.total");
}
}