chore: fixed broken darkfid rpc blockchain.get_block clients requests

This commit is contained in:
skoupidi
2025-12-29 19:25:27 +02:00
parent ed4b505c8d
commit c9c9a7a38a
3 changed files with 3 additions and 3 deletions

View File

@@ -136,7 +136,7 @@ async fn realmain(args: Args, ex: Arc<smol::Executor<'static>>) -> Result<()> {
info!(target: "blockchain-storage-metrics", "Requesting block for height: {h}");
let req = JsonRequest::new(
"blockchain.get_block",
JsonValue::Array(vec![JsonValue::String(h.to_string())]),
JsonValue::Array(vec![JsonValue::Number(h as f64)]),
);
let rep = rpc_client.request(req).await?;
let encoded_block = rep.get::<String>().unwrap();