Skip to main content

deliver_forwarded_broadcast

Function deliver_forwarded_broadcast 

Source
pub(crate) async fn deliver_forwarded_broadcast(
    state: &AppState,
    block_id: &str,
    body: &str,
    msg_id: &str,
    recipients: usize,
) -> Result<(), String>
Expand description

The receiving end of forward_broadcast_to_channel. A forward that another instance of this machine confirms it sent (from the operator’s window) is delivered as the person’s broadcast: the header is built here, from the target’s own agent id, as any broadcast turn (MessageOrigin::broadcast()). Any other forward is delivered as an ordinary agent message from swarm-forward, labelled self-declared, never as the person. Audited on this side too, naming which of the two it was.