File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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.
6062type ComplianceEngine struct {
6163 * component.ComponentManager
@@ -77,6 +79,8 @@ type ComplianceEngine struct {
7779var _ network.MessageProcessor = (* ComplianceEngine )(nil )
7880var _ 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.
8084func NewComplianceLayer (
8185 log zerolog.Logger ,
8286 net network.Network ,
You can’t perform that action at this time.
0 commit comments