feat(network): implement stake distribution local state query (#340)
This commit is contained in:
parent
a77efa2adc
commit
645989465d
5 changed files with 125 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue