Skip to content

Commit a253df7

Browse files
authored
Fix rustls CryptoProvider panic on node startup (#755)
1 parent fe9e95a commit a253df7

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Cargo.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

parachain/node/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hyperbridge"
3-
version = "1.4.3"
3+
version = "1.4.4"
44
authors = ["Polytope Labs <hello@polytope.technology>"]
55
description = "The Hyperbridge coprocessor node"
66
repository = "https://github.com/polytope-labs/hyperbridge"
@@ -20,6 +20,7 @@ codec = { workspace = true, default-features = true }
2020
serde = { workspace = true, default-features = true }
2121
jsonrpsee = { workspace = true }
2222
futures = "0.3.28"
23+
rustls = { version = "0.23", default-features = false, features = ["ring"] }
2324
tokio = { workspace = true, features = ["sync"] }
2425
json = { workspace = true, default-features = true }
2526

parachain/node/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@ mod simnode;
3030
use polkadot_sdk::*;
3131

3232
fn main() -> sc_cli::Result<()> {
33+
rustls::crypto::ring::default_provider()
34+
.install_default()
35+
.expect("Failed to install default CryptoProvider");
3336
command::run()
3437
}

0 commit comments

Comments
 (0)