Skip to main content

invoke

Function invoke 

Source
pub fn invoke(
    _node: &NodeProto,
    inputs: &[(&str, &dyn SlotValue)],
    ctx: &mut RuntimeResourceRef<'_>,
) -> Result<DispatchResult, OpError>
Expand description

Invoke fn — merge the address bag into the AddressBook.

New peer → add_peer with the full vec (entry created with ref_count = 1). Known peer → one register_address per address (idempotent append, no ref_count change). An empty input vec surfaces as OpError — graph-level intent to insert zero addresses is a wiring mistake.