From f87b67410eee13336890d100a75cc4d88a2a7b57 Mon Sep 17 00:00:00 2001 From: boneyard93501 <4523011+boneyard93501@users.noreply.github.com> Date: Fri, 21 Jan 2022 01:42:42 -0600 Subject: [PATCH] update to join, add Op.noop() hot fix --- quickstart/5-oracle-service/aqua/ts_oracle.aqua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/quickstart/5-oracle-service/aqua/ts_oracle.aqua b/quickstart/5-oracle-service/aqua/ts_oracle.aqua index acc228c..f8dfe83 100644 --- a/quickstart/5-oracle-service/aqua/ts_oracle.aqua +++ b/quickstart/5-oracle-service/aqua/ts_oracle.aqua @@ -1,4 +1,3 @@ - alias PeerId : string alias Base58String : string alias Hash : string @@ -13,6 +12,7 @@ data Info: external_addresses: []string service Op("op"): + noop() string_to_b58(s: string) -> Base58String concat_strings(a: string, b: string) -> string @@ -68,8 +68,9 @@ func ts_oracle_with_consensus(tolerance: u32, threshold: f64, err_value:u64, nod if status! != "success": res <<- err_value dead_peers <<- n + Op.noop() - MyOp.identity(res!19) + join res[19] TSOracle oracle_service_id consensus <- TSOracle.ts_frequency(res, tolerance, threshold, err_value) <- consensus, dead_peers @@ -84,5 +85,6 @@ func ts_oracle_with_bool(tolerance: u32, threshold: f64, err_value:u64, node:str for n <- nodes par: res <- Peer.connect(n, nil) peers <<- n - MyOpBool.identity(res!19) + Op.noop() + join res[19] <- res, peers \ No newline at end of file