Expand description
ApprovalDistribution
implementation.
See the documentation on approval distribution in the implementers’ guide.
Modules§
- metrics
- Approval distribution metrics.
Structs§
- Approval
Distribution - The Approval Distribution subsystem.
- State
- The
State
struct is responsible for tracking the overall state of the subsystem.
Constants§
- MAX_
APPROVAL_ BATCH_ SIZE - The maximum amount of approvals per batch is 33% of maximum allowed by protocol.
- MAX_
ASSIGNMENT_ BATCH_ SIZE - The maximum amount of assignments per batch is 33% of maximum allowed by protocol.
This is an arbitrary value. Bumping this up increases the maximum amount of approvals or
assignments we send in a single message to peers. Exceeding
MAX_NOTIFICATION_SIZE
will violate the protocol configuration.