Skip to content

Commit 3c3f3de

Browse files
author
Alexander Hentschel
committed
minor extension to address point of unclarity
1 parent 08aad74 commit 3c3f3de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

engine/common/follower/pending_tree/pending_tree.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ func NewPendingTree(finalized *flow.Header) *PendingTree {
101101
// Details:
102102
// Adding blocks might result in additional blocks now being connected to the latest finalized block. The returned
103103
// slice contains:
104-
// 1. the subset of `certifiedBlocks` that are newly connected to the finalized block
105-
// (excluding any blocks whose view is smaller or equal to the finalized block)
104+
// 1. the subset of `certifiedBlocks` that are connected to the finalized block
105+
// - excluding any blocks whose view is smaller or equal to the finalized block
106+
// - if a block `B ∈ certifiedBlocks` is already known to the PendingTree and connected,
107+
// `B` and all its connected descendants will be in the returned list
106108
// 2. additionally, all of the _connected_ descendants of the blocks from step 1.
107109
//
108110
// PendingTree treats its input as a potentially repetitive stream of information: repeated inputs are already

0 commit comments

Comments
 (0)