feat(network): implement GetChainBlockNo local state query (#441)

This commit is contained in:
Alexsander Falcucci 2024-04-16 14:27:23 +02:00 committed by GitHub
parent 2d6b6fda1e
commit 97a32c9af5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 62 additions and 2 deletions

View file

@ -25,6 +25,9 @@ async fn do_localstate_query(client: &mut NodeClient) {
let result = queries_v16::get_system_start(client).await.unwrap();
info!("result: {:?}", result);
let result = queries_v16::get_chain_block_no(client).await.unwrap();
info!("result: {:?}", result);
let era = queries_v16::get_current_era(client).await.unwrap();
info!("result: {:?}", era);