mirror of
https://github.com/logos-messaging/specs.git
synced 2026-05-19 03:19:33 +00:00
properly specify epoch period in seconds
This commit is contained in:
parent
f4e5ed59a0
commit
94fab074d6
@ -126,7 +126,7 @@ The Rate Limit Manager ensures compliance with [RLN](https://lip.logos.co/messag
|
|||||||
|
|
||||||
- It tracks how many messages have been sent in the current epoch.
|
- It tracks how many messages have been sent in the current epoch.
|
||||||
- When the limit is approached, segment dispatch MUST be delayed to the next epoch.
|
- When the limit is approached, segment dispatch MUST be delayed to the next epoch.
|
||||||
- The epoch size MUST match the `epochSizeMs` configured in `RateLimitConfig`.
|
- The epoch size MUST match the `[epochPeriodSec](https://lip.logos.co/messaging/standards/core/17/rln-relay.html#epoch-length)` configured in `RateLimitConfig`.
|
||||||
|
|
||||||
### Encryption Hook
|
### Encryption Hook
|
||||||
|
|
||||||
@ -177,7 +177,7 @@ When a segment is received from the network, the implementation MUST process it
|
|||||||
### Rate limiting
|
### Rate limiting
|
||||||
|
|
||||||
When `RateLimitConfig.enabled` is `true`, the implementation MUST space segment transmissions
|
When `RateLimitConfig.enabled` is `true`, the implementation MUST space segment transmissions
|
||||||
to comply with the [RLN](https://lip.logos.co/messaging/standards/core/17/rln-relay.html) epoch constraints defined in `epochSizeMs`.
|
to comply with the [RLN](https://lip.logos.co/messaging/standards/core/17/rln-relay.html) epoch constraints defined in `[epochPeriodSec](https://lip.logos.co/messaging/standards/core/17/rln-relay.html#epoch-length)`.
|
||||||
Segments MUST NOT be sent at a rate that would violate the RLN message rate limit for the active epoch.
|
Segments MUST NOT be sent at a rate that would violate the RLN message rate limit for the active epoch.
|
||||||
|
|
||||||
### Encryption
|
### Encryption
|
||||||
@ -402,9 +402,9 @@ types:
|
|||||||
type: bool
|
type: bool
|
||||||
default: false
|
default: false
|
||||||
description: "Whether rate limiting is enforced. SHOULD be true when RLN is active."
|
description: "Whether rate limiting is enforced. SHOULD be true when RLN is active."
|
||||||
epochSizeMs:
|
epochPeriodSec:
|
||||||
type: uint
|
type: uint
|
||||||
default: 600000 # 10 minutes
|
default: 600 # 10 minutes
|
||||||
description: "The epoch size used by the RLN relay, in milliseconds."
|
description: "The epoch size used by the RLN relay, in milliseconds."
|
||||||
|
|
||||||
Encryption:
|
Encryption:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user