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 a77efa2adc
commit 645989465d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();