From f8e35d017dfd475d407611e9b2ba73c82035f82a Mon Sep 17 00:00:00 2001 From: madlabman <10616301+madlabman@users.noreply.github.com> Date: Fri, 20 Sep 2024 11:28:28 +0200 Subject: [PATCH] chore: add explaining log to collect_data --- src/modules/csm/csm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/csm/csm.py b/src/modules/csm/csm.py index f3019720b..4e7271bab 100644 --- a/src/modules/csm/csm.py +++ b/src/modules/csm/csm.py @@ -180,6 +180,10 @@ def collect_data(self, blockstamp: BlockStamp) -> bool: finalized_epoch = EpochNumber(converter.get_epoch_by_slot(blockstamp.slot_number) - 1) report_blockstamp = self.get_blockstamp_for_report(blockstamp) + + if not report_blockstamp: + logger.info({"msg": "No report blockstamp available, using pre-computed one for collecting data"}) + if report_blockstamp and report_blockstamp.ref_epoch != r_epoch: logger.warning( {