diff --git a/beacon_chain/sync/sync_manager.nim b/beacon_chain/sync/sync_manager.nim index 2df1f00f8..b81ac0eda 100644 --- a/beacon_chain/sync/sync_manager.nim +++ b/beacon_chain/sync/sync_manager.nim @@ -688,9 +688,10 @@ proc syncStep[A, B](man: SyncManager[A, B], index: int, peer: A) else: Opt.none(seq[DataColumnSidecars]) - - debugEcho "Data column while syncing" - debugEcho dataColumnData.get[4].mapIt(it[]) + + if dataColumnData.isSome: + debugEcho "Data column while syncing" + debugEcho dataColumnData.get[4].mapIt(it[]) if len(blockData) == 0 and man.direction == SyncQueueKind.Backward and req.contains(man.getSafeSlot()):