Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions multiepoch-getBlock-car.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ func (multi *MultiEpoch) handleGetBlock_car(ctx context.Context, conn *requestCo
// TODO: the parent object might be in the previous epoch, so we need to handle that case.

offsetParent, parentCid, err := func() (uint64, cid.Cid, error) {
if parentSlot == 0 {
return epochHandler.carHeaderSize, cid.Cid{}, nil // genesis has no parent
if slot == 0 {
// genesis block (block 0) has no parent
return epochHandler.carHeaderSize, cid.Cid{}, nil
}
if parentIsInPreviousEpoch {
return epochHandler.carHeaderSize, cid.Cid{}, nil
Expand Down
Loading