Expand description
Feed actor implementation.
This actor:
- Receives consensus activity (notarizations, finalizations)
- Updates shared state (accessible by RPC handlers)
- Broadcasts events to subscribers
Block resolution uses [marshal::Mailbox::subscribe_by_digest] to wait for the block
to become available, avoiding a race where the block hasnโt been stored yet
when the activity arrives.
The actor always polls the oldest (lowest-round) pending subscription so that events are emitted in order. Notarizations are dropped when a finalization at a higher-or-equal round is pending, since the finalization supersedes them.
Structsยง
- Actor ๐
- Pending
Subscription ๐ - A pending block subscription paired with its originating activity.
Functionsยง
- now_
millis ๐ - Get current Unix timestamp in milliseconds.
Type Aliasesยง
- Feed
Activity ๐ - Type alias for the activity type used by the feed actor.
- Receiver ๐
- Receiver for activity messages.