remove test fucntion with_bool

This commit is contained in:
boneyard93501 2022-08-01 10:31:31 -05:00
parent 4b56530c05
commit 316c9a10fc

View File

@ -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 <- TSOracle.ts_frequency(res, tolerance, threshold, err_value)
<- consensus, dead_peers, Op.array_length(nodes) - Op.array_length(dead_peers) <- 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