aqua/aqua-src/so.aqua
Dmitry Kurinskiy c74eb06499
427 topology bug (#433)
* fix path

* topology bug 427 test

* test with join, it works

* improve topology test, still works. add compiler test

* broken compiler test

* CompilerSpec works fine without `wrapWithXor`

* add xor to topology test, it becomes broken

* XOR topology fixed

* ForceExecModel

* Debugging topology WIP

* Fixed

Co-authored-by: DieMyst <dmitry.shakhtarin@fluence.ai>
2022-02-15 19:20:56 +03:00

23 lines
417 B
Plaintext

service Kademlia("kad"):
neighborhood: -> []string
service Peer("peer"):
timestamp_sec: -> u64
service Op2("op"):
identity: u64 -> u64
func getTwoResults(node: string) -> []u64:
on node:
nodes <- Kademlia.neighborhood()
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