Skip to main content

Module lookup

Module lookup 

Source
Expand description

AddressBook::Lookup(peer) → addresses — custom op registered via bb::register_op! that resolves every multiaddr bound to a peer from the engine’s bb_runtime::framework::AddressBook.

Returns the full ordered slice; downstream Components that need a single address pick one explicitly. Unknown or empty-address-list peers surface as OpError so the recording surface notices the missing seed.

Constants§

DOMAIN
(domain, op_type) registration key.
OP_TYPE
Op type name.
PORT_ADDRESSES
Output port carrying the resolved Vec<Address>.

Functions§

invoke
Invoke fn — read every address for peer and emit them on the addresses output. Missing peer or empty list → OpError with ExecutionFailed; missing or mistyped peer input → OpError with the matching MissingSlot / TypeMismatch kind.