mirror of
https://github.com/fluencelabs/aqua-playground
synced 2025-05-10 08:17:15 +00:00
18 lines
412 B
Plaintext
18 lines
412 B
Plaintext
import "@fluencelabs/aqua-lib/builtin.aqua"
|
|
|
|
service Op2("op"):
|
|
identity(s: u64)
|
|
|
|
func getTwoResults(relay: string) -> []u64:
|
|
on relay:
|
|
k <- Op.string_to_b58(%init_peer_id%)
|
|
nodes <- Kademlia.neighborhood(k, nil, nil)
|
|
res: *u64
|
|
for n <- nodes par:
|
|
on n:
|
|
try:
|
|
res <- Peer.timestamp_sec()
|
|
Op2.identity(res!)
|
|
Op2.identity(res!1)
|
|
Op2.identity(res!2)
|
|
<- res |