Skip to content

Commit 657eb3b

Browse files
authored
v1.0.0-rc.0 (#16)
1 parent 4276235 commit 657eb3b

File tree

3 files changed

+28
-32
lines changed

3 files changed

+28
-32
lines changed

Cargo.lock

Lines changed: 17 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "signet"
3-
version = "0.4.0"
3+
version = "1.0.0-rc.0"
44
edition = "2024"
55
rust-version = "1.88"
66
authors = ["init4"]
@@ -12,11 +12,10 @@ repository = "https://github.com/init4tech/signet-node"
1212
init4-bin-base = { version = "0.17.0", features = ["alloy"], default-features = false }
1313

1414
# Node Components
15-
signet-node = { git = "https://github.com/init4tech/node-components", tag = "v0.14.1" }
16-
signet-node-config = { git = "https://github.com/init4tech/node-components", tag = "v0.14.1" }
15+
signet-node = { git = "https://github.com/init4tech/node-components", tag = "v0.14.2" }
16+
signet-node-config = { git = "https://github.com/init4tech/node-components", tag = "v0.14.2" }
1717

1818
reth = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.1" }
19-
reth-db = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.1" }
2019
reth-node-ethereum = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.1" }
2120

2221
eyre = "0.6.12"

src/lib.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
use openssl as _; // silences clippy warning
1111

1212
use init4_bin_base::utils::from_env::FromEnv;
13-
use reth::providers::{ProviderFactory, StateProviderFactory, providers::BlockchainProvider};
14-
use signet_node::SignetNode;
13+
use reth::providers::ProviderFactory;
14+
use signet_node::SignetNodeBuilder;
1515
use signet_node_config::SignetNodeConfig;
1616
use std::sync::{Arc, LazyLock};
1717

@@ -27,8 +27,6 @@ pub fn node_from_env() -> eyre::Result<()> {
2727
/// State the Signet node, using the provided config.
2828
pub fn node(config: SignetNodeConfig) -> eyre::Result<()> {
2929
reth::cli::Cli::parse_args().run(|builder, _| async move {
30-
let db_args = reth_db::mdbx::DatabaseArguments::default();
31-
3230
let prune_config = builder.config().prune_config();
3331

3432
let handle = builder
@@ -40,18 +38,18 @@ pub fn node(config: SignetNodeConfig) -> eyre::Result<()> {
4038
let mut factory = ProviderFactory::new_with_database_path(
4139
config.database_path(),
4240
chain_spec,
43-
db_args,
41+
Default::default(),
4442
config.static_file_rw()?,
4543
)?;
4644
if let Some(prune_config) = prune_config {
4745
factory = factory.with_prune_modes(prune_config.segments);
4846
}
4947

50-
// This allows the node to look up contract status.
51-
let boxed_factory: Box<dyn StateProviderFactory> =
52-
Box::new(BlockchainProvider::new(factory.clone())?);
53-
54-
Ok(SignetNode::new(ctx, config, factory.clone(), boxed_factory, CLIENT.clone())?
48+
Ok(SignetNodeBuilder::new(config)
49+
.with_factory(factory.clone())
50+
.with_ctx(ctx)
51+
.with_client(CLIENT.clone())
52+
.build()?
5553
.0
5654
.start())
5755
})

0 commit comments

Comments
 (0)