Skip to content

Commit 03ed80a

Browse files
committed
no deps
1 parent 888c6f4 commit 03ed80a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

epoch.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,6 +1929,11 @@ func (e *Epoch) createNotarizedBlockVerificationTask(block Block, notarization N
19291929
// finalizedBlockDependency returns the dependency digest for a block that has a finalization.
19301930
// We do not care about empty notarizations since the block is finalized.
19311931
func (e *Epoch) finalizedBlockDependency(md BlockHeader) Digest {
1932+
if md.Seq == 0 {
1933+
// genesis block has no dependencies
1934+
return emptyDigest
1935+
}
1936+
19321937
// A block can be scheduled if its predecessor is either notarized or finalized.
19331938
// We do not care about empty notarizations since this block is finalized.
19341939
_, notarizedOrFinalized, found := e.locateBlock(md.Seq-1, md.Prev[:])

0 commit comments

Comments
 (0)