feat(network): implement stake distribution local state query (#340)

This commit is contained in:
Alexsander Falcucci 2023-11-24 10:43:25 +01:00 committed by GitHub
parent cce85a7482
commit b1ac003716
5 changed files with 125 additions and 4 deletions

View file

@ -21,7 +21,11 @@ async fn do_localstate_query(client: &mut NodeClient) {
let result = queries_v16::get_block_epoch_number(client, era)
.await
.unwrap();
info!("result: {:?}", result);
let result = queries_v16::get_stake_distribution(client, era)
.await
.unwrap();
info!("result: {:?}", result);
client.send_release().await.unwrap();