Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Dec 17, 2024
1 parent 7d8690b commit 96c6a1a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/threshold-signature-server/src/helpers/launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,16 @@ pub async fn check_node_prerequisites(url: &str, account_id: &str) {
tracing::warn!("Unable to query the account balance of `{}`", &account_id)
},
}

// TODO now check if there exists a threshold server with our details - if there is not,
// we need to wait until there is
// let stash_address_query = entropy::storage()
// .staking_extension()
// .threshold_to_stash(validator_info.tss_account.clone());
//
// let stash_address = query_chain(&api, &rpc, stash_address_query, None)
// .await?
// .ok_or_else(|| UserErr::ChainFetch("Stash Fetch Error"))?;
},
Err(_err) => {
tracing::error!("Unable to establish connection with Substrate node at `{}`", url);
Expand Down
2 changes: 2 additions & 0 deletions crates/threshold-signature-server/src/helpers/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ pub async fn setup_client() -> KvManager {
let _ = setup_latest_block_number(&kv_store).await;
let configuration = Configuration::new(DEFAULT_ENDPOINT.to_string());
let app_state = AppState::new(configuration, kv_store.clone(), &Some(ValidatorName::Alice));
// Mock making the pre-requisite checks by setting the application state to ready
app_state.make_ready();

let app = app(app_state).into_make_service();
Expand Down Expand Up @@ -108,6 +109,7 @@ pub async fn create_clients(
}

let app_state = AppState::new(configuration, kv_store.clone(), validator_name);
// Mock making the pre-requisite checks by setting the application state to ready
app_state.make_ready();

let account_id = app_state.subxt_account_id();
Expand Down

0 comments on commit 96c6a1a

Please sign in to comment.