Skip to content

Commit 5c29952

Browse files
authored
Fix query-validators (#4580)
## Motivation After #3881 we stopped checking signatures (my bad!) ## Proposal Fix the typo ## Test Plan CI + tested manually ## Release Plan - These changes should be backported to the latest `testnet` branch, then - be released in a new SDK,
1 parent 934b2f1 commit 5c29952

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

linera-client/src/client_context.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use linera_persistent::{Persist, PersistExt as _};
2323
use linera_rpc::node_provider::{NodeOptions, NodeProvider};
2424
use linera_version::VersionInfo;
2525
use thiserror_context::Context;
26-
use tracing::{debug, info};
26+
use tracing::{debug, info, warn};
2727
#[cfg(not(web))]
2828
use {
2929
crate::{
@@ -568,6 +568,8 @@ impl<Env: Environment, W: Persist<Target = Wallet>> ClientContext<Env, W> {
568568
}
569569
.into());
570570
}
571+
} else {
572+
warn!("Not checking signature as public key was not given");
571573
}
572574
Ok(())
573575
}

linera-service/src/cli/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ impl Runnable for Job {
519519
.push(e);
520520
}
521521
if let Err(e) = context
522-
.check_validator_chain_info_response(None, address, &node, chain_id)
522+
.check_validator_chain_info_response(Some(name), address, &node, chain_id)
523523
.await
524524
{
525525
error!("{}", e);

0 commit comments

Comments
 (0)