Skip to content

Commit

Permalink
Improve display of failed registration checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Dec 18, 2024
1 parent 3c08c75 commit c18124e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/threshold-signature-server/src/helpers/launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ pub async fn check_node_prerequisites(app_state: AppState) {
)
.await
.map_err(|e| {
tracing::error!("Account: {} {}", &account_id, e);
tracing::warn!("Account: {} {}", &account_id, e);
e.to_string()
})?;
if !has_minimum_balance {
Expand All @@ -326,7 +326,9 @@ pub async fn check_node_prerequisites(app_state: AppState) {

let _stash_address = query_chain(&api, &rpc, stash_address_query, None)
.await?
.ok_or_else(|| SubstrateError::NoEvent)?;
.ok_or_else(|| {
tracing::warn!("TSS account ID {account_id} not yet registered on-chain - you need to call `validate` or `change_threshold_accounts`");
SubstrateError::NoEvent})?;
Ok(())
};

Expand Down

0 comments on commit c18124e

Please sign in to comment.