Skip to content
Snippets Groups Projects
Commit 6f0ab434 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

wip

parent 5628f095
No related branches found
No related tags found
1 merge request!280Draft: (paused) distance result precomputation
use distance_oracle::api;
// computes distance result for all identities with status other than Revoked
// this allows to have a recent estimate of the distance computation
#[tokio::main]
async fn main() {
simple_logger::SimpleLogger::new()
.init()
.unwrap();
let client = &distance_oracle::api::client(cli.rpc_url.clone()).await;
let parent_hash = api::parent_hash(client).await;
let max_depth = api::max_referee_distance(client).await;
let current_pool_index = api::current_pool_index(client, parent_hash).await;
let evaluation_block = parent_hash;
let mut certs_iter = api::cert_iter(client, evaluation_block).await;
let mut members_iter = api::member_iter(client, evaluation_block).await;
// TODO
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment