mirror of
https://github.com/fluencelabs/examples
synced 2024-12-04 19:20:17 +00:00
remove test fucntion with_bool
This commit is contained in:
parent
4b56530c05
commit
316c9a10fc
@ -54,18 +54,3 @@ func ts_oracle_with_consensus(tolerance: u32, threshold: f64, err_value:u64, nod
|
||||
consensus <- TSOracle.ts_frequency(res, tolerance, threshold, err_value)
|
||||
|
||||
<- consensus, dead_peers, Op.array_length(nodes) - Op.array_length(dead_peers)
|
||||
|
||||
|
||||
func ts_oracle_with_bool(tolerance: u32, threshold: f64, err_value:u64, node:string, oracle_service_id:string)-> []bool, []string:
|
||||
res: *bool
|
||||
peers: *string
|
||||
dead_peers: *string
|
||||
on node:
|
||||
k <- Op.string_to_b58(node)
|
||||
nodes <- Kademlia.neighborhood(k, nil, nil)
|
||||
for n <- nodes par:
|
||||
res <- Peer.connect(n, nil)
|
||||
peers <<- n
|
||||
|
||||
join res[Op.array_length(nodes) - 1]
|
||||
<- res, peers
|
||||
|
Loading…
Reference in New Issue
Block a user