From 92cedbae4255751cbf3714603bfeb4fe28c0f28a Mon Sep 17 00:00:00 2001 From: Chris Hewison Date: Wed, 20 Apr 2022 15:51:28 +0900 Subject: [PATCH] Count the validators active for the block being added --- source/agora/consensus/state/Ledger.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/agora/consensus/state/Ledger.d b/source/agora/consensus/state/Ledger.d index ca6bd0cf95d..8293f2e3e29 100644 --- a/source/agora/consensus/state/Ledger.d +++ b/source/agora/consensus/state/Ledger.d @@ -457,7 +457,7 @@ public class Ledger log.info("Transactions: {} - Enrollments: {}", block.txs.length, block.header.enrollments.length); log.info("Validators: Active: {} - Signing: {} - Slashed: {}", - this.validatorCount(block.header.height + 1), + block.header.validators.count(), block.header.validators, block.header.preimages.count!(h => h is Hash.init)); // Keep track of the fees generated by this block, before updating the