From 6d27ba50727fe173cdcc6ae49e51bed99b41dc01 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Tue, 1 Jul 2025 17:49:41 -0400 Subject: [PATCH] fix(ledger): update new tip log message for genesis Signed-off-by: Chris Gianelloni --- ledger/state.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ledger/state.go b/ledger/state.go index bf89968b..2505398f 100644 --- a/ledger/state.go +++ b/ledger/state.go @@ -598,10 +598,16 @@ func (ls *LedgerState) ledgerProcessBlocks() { } } if len(nextBatch) > 0 { + var hash string + if ls.currentTip.Point.Slot == 0 { + hash = "" + } else { + hash = hex.EncodeToString(ls.currentTip.Point.Hash) + } ls.config.Logger.Info( fmt.Sprintf( - "chain extended, new tip: %x at slot %d", - ls.currentTip.Point.Hash, + "chain extended, new tip: %s at slot %d", + hash, ls.currentTip.Point.Slot, ), "component",