def add_neighbors(self, uris): # type: (Iterable[Text]) -> dict """ Add one or more neighbors to the node. Lasts until the node is restarted. :param uris: Use format ``udp://<ip address>:<port>``. Example: ``add_neighbors(['udp://example.com:14265'])`` References: - https://iota.readme.io/docs/addneighors """ return core.AddNeighborsCommand(self.adapter)(uris=uris)
def add_neighbors(self, uris): # type: (Iterable[Text]) -> dict """ Add one or more neighbors to the node. Lasts until the node is restarted. :param uris: Use format ``<protocol>://<ip address>:<port>``. Example: ``add_neighbors(['udp://example.com:14265'])`` .. note:: These URIs are for node-to-node communication (e.g., weird things will happen if you specify a node's HTTP API URI here). References: - https://iota.readme.io/docs/addneighors """ return core.AddNeighborsCommand(self.adapter)(uris=uris)