Skip to main content

Module insert

Module insert 

Source
Expand description

AddressBook::Insert(peer, addr) - custom op registered via bb::register_op! that pushes a multiaddr into the engine’s bb_runtime::framework::AddressBook from the data plane.

The op routes through the existing add_peer / register_address API: a new peer creates an entry with ref_count = 1; a known peer dedupe-appends the address without a ref_count change. The (peer, addr) carriers ride the graph as TYPE_PEER_ID and TYPE_MULTIADDRESS.

Constants§

DOMAIN
(domain, op_type) registration key.
OP_TYPE
Op type name.

Functions§

invoke
Invoke fn - merge the address into the AddressBook.