mirror of
https://github.com/fluencelabs/examples
synced 2025-06-19 04:51:21 +00:00
init multi services
This commit is contained in:
13
multi-service/air-scripts/get_latest_block.clj
Normal file
13
multi-service/air-scripts/get_latest_block.clj
Normal file
@ -0,0 +1,13 @@
|
||||
(xor
|
||||
(seq
|
||||
|
||||
(call node_1 (service_1 "get_latest_block") [api_key] hex_result)
|
||||
(call %init_peer_id% (returnService "run") [hex_result])
|
||||
(call node_2 (service_2 "hex_to_int") [hex_result] result)
|
||||
(call %init_peer_id% (returnService "run") [result])
|
||||
)
|
||||
(seq
|
||||
(call relay ("op" "identity") [])
|
||||
(call %init_peer_id% (returnService "run") ["XOR FAILED" %last_error%])
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user