Skip to content

Commit d4f1f1b

Browse files
author
Alexander Hentschel
committed
goDoc revision
1 parent 215b8bc commit d4f1f1b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

engine/common/follower/compliance_engine.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ const defaultPendingConnectedBlocksChanCapacity = 100
5252
// is employed by consensus nodes (active consensus participants) where the
5353
// Follower engine is employed by all other node roles.
5454
// ComplianceEngine is responsible for:
55-
// 1. Consuming events from external sources such as sync engine.
56-
// 2. Splitting incoming batches in batches of connected blocks.
57-
// 3. Providing worker goroutines for concurrent processing of batches of connected blocks.
58-
// 4. Handling of finalization events.
55+
// 1. Consuming events from external sources such as sync engine.
56+
// 2. Splitting incoming batches in batches of connected blocks.
57+
// 3. Providing worker goroutines for concurrent processing of batches of connected blocks.
58+
// 4. Handling of finalization events.
59+
//
60+
// See interface `complianceCore` (this package) for detailed documentation of the algorithm.
5961
// Implements consensus.Compliance interface.
6062
type ComplianceEngine struct {
6163
*component.ComponentManager
@@ -77,6 +79,8 @@ type ComplianceEngine struct {
7779
var _ network.MessageProcessor = (*ComplianceEngine)(nil)
7880
var _ consensus.Compliance = (*ComplianceEngine)(nil)
7981

82+
// NewComplianceLayer instantiates th compliance layer for the consensus follower. See
83+
// interface `complianceCore` (this package) for detailed documentation of the algorithm.
8084
func NewComplianceLayer(
8185
log zerolog.Logger,
8286
net network.Network,

0 commit comments

Comments
 (0)