From a1d089f0c6b45af54cb4ae6ac3cd3b0dd668b880 Mon Sep 17 00:00:00 2001 From: Aurora Gaffney Date: Mon, 4 Aug 2025 17:36:53 -0400 Subject: [PATCH] fix: adjust genesis block condition We accidentially broke this when adding pre-population of the initial epoch Signed-off-by: Aurora Gaffney --- ledger/chainsync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger/chainsync.go b/ledger/chainsync.go index 4a1a5bc2..0c75a8d7 100644 --- a/ledger/chainsync.go +++ b/ledger/chainsync.go @@ -212,7 +212,7 @@ func (ls *LedgerState) processBlockEvents() error { } func (ls *LedgerState) createGenesisBlock() error { - if ls.currentEpoch.SlotLength > 0 { + if ls.currentTip.Point.Slot > 0 { return nil } txn := ls.db.Transaction(true)