mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 22:50:18 +00:00
12 lines
390 B
Plaintext
12 lines
390 B
Plaintext
|
import "builtin.aqua"
|
||
|
|
||
|
func getPeerExternalAddresses(otherNodePeerId: string) -> []string:
|
||
|
on otherNodePeerId:
|
||
|
res <- Peer.identify()
|
||
|
<- res.external_addresses
|
||
|
|
||
|
-- it is possible to use `via` to built complex routes
|
||
|
func getDistantAddresses(target: string, viaNode: string) -> []string:
|
||
|
on target via viaNode:
|
||
|
res <- Peer.identify()
|
||
|
<- res.external_addresses
|