Skip to content

Commit

Permalink
Enable connection to insecure node URL
Browse files Browse the repository at this point in the history
  • Loading branch information
aterentic-ethernal committed Aug 29, 2024
1 parent 7c3ef62 commit 569bb15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/network/rpc/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ impl<D: Database> Client<D> {
expected_node: ExpectedNodeVariant,
expected_genesis_hash: &str,
) -> Result<(SDK, Node)> {
let client = SDK::new(host).await.map_err(|error| eyre!("{error}"))?;
let client = SDK::new_insecure(host)
.await
.map_err(|error| eyre!("{error}"))?;

// check genesis hash
let genesis_hash = client.api.genesis_hash();
Expand Down

0 comments on commit 569bb15

Please sign in to comment.