mirror of
https://github.com/fluencelabs/aqua.git
synced 2025-03-15 03:30:49 +00:00
* 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>
23 lines
417 B
Plaintext
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
|
|
|