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