Skip to content

Commit 5b5be36

Browse files
committed
Cleanup.
1 parent 3ac7bd5 commit 5b5be36

File tree

13 files changed

+14
-44
lines changed

13 files changed

+14
-44
lines changed

Cargo.lock

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

tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ sailfish = { path = "../sailfish", features = ["test"] }
2323
sailfish-types = { path = "../sailfish-types" }
2424
serde = { workspace = true }
2525
timeboost = { path = "../timeboost" }
26-
timeboost-utils = { path = "../timeboost-utils", features = ["test"] }
26+
timeboost-utils = { path = "../timeboost-utils" }
2727
tokio = { workspace = true }
2828
tokio-stream = { workspace = true }
2929
tokio-util = { workspace = true }

tests/src/tests/timeboost.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use multisig::Keypair;
1212
use multisig::{Committee, x25519};
1313
use sailfish_types::UNKNOWN_COMMITTEE_ID;
1414
use timeboost::builder::CertifierConfig;
15-
use timeboost::conf::{ChainConfig, ParentChain};
15+
use timeboost::config::{ChainConfig, ParentChain};
1616
use timeboost::crypto::prelude::DkgDecKey;
1717
use timeboost::sequencer::SequencerConfig;
1818
use timeboost::types::BundleVariant;

tests/src/tests/timeboost/handover.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use sailfish::consensus::Consensus;
1414
use sailfish::rbc::Rbc;
1515
use sailfish::types::{ConsensusTime, RoundNumber, Timestamp};
1616
use sailfish::{Coordinator, Event};
17-
use timeboost::conf::{ChainConfig, ParentChain};
17+
use timeboost::config::{ChainConfig, ParentChain};
1818
use timeboost::crypto::prelude::DkgDecKey;
1919
use timeboost::sequencer::SequencerConfig;
2020
use timeboost::types::{DecryptionKeyCell, KeyStore};

timeboost-config/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,16 @@ public = "3V1LzAgCwubtAb1MT1YgTH2scXg6d2bQEhhsAMeyNo6X"
128128
secret = "Cab231aFJTQYmZV7Qw4qa2x49K58fbyTEsM4Tz2CKi1"
129129
public = "7jdMG9MUWoN4avAc3mbf2tTTGdKSmmGZWTgR3NJ9hJPn6dHj9Vdqspcs3j6zTThfjC"
130130
131+
[chain]
132+
namespace = 10101
133+
131134
[chain.parent]
132135
id = 31337
133136
rpc_url = "http://127.0.0.1:8545/"
134137
ibox_contract = "0x4dbd4fc535ac27206064b68ffcf827b0a60bab3f"
135138
block_tag = "finalized"
136139
key_manager_contract = "0x2bbf15bc655c4cc157b769cfcb1ea9924b9e1a35"
137-
"#;
140+
"#;
138141

139142
use super::NodeConfig;
140143

timeboost-utils/Cargo.toml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,24 @@ version.workspace = true
55
edition.workspace = true
66
rust-version.workspace = true
77

8-
[features]
9-
test = ["committable", "crossbeam-queue", "sailfish-types"]
10-
118
[dependencies]
129
alloy = { workspace = true }
1310
anyhow = { workspace = true }
1411
arbitrary = { workspace = true }
1512
ark-std = { workspace = true }
16-
async-trait = { workspace = true }
1713
bincode = { workspace = true }
1814
blake3 = { workspace = true }
1915
bs58 = { workspace = true }
2016
bytes = { workspace = true }
21-
clap = { workspace = true }
2217
cliquenet = { path = "../cliquenet" }
23-
committable = { workspace = true, optional = true }
24-
crossbeam-queue = { workspace = true, optional = true }
2518
ethereum_ssz = { workspace = true }
2619
futures = { workspace = true }
27-
jiff = { workspace = true }
28-
metrics = { path = "../metrics" }
2920
multisig = { path = "../multisig" }
30-
parking_lot = { workspace = true }
31-
prometheus = { workspace = true }
3221
rand = { workspace = true }
3322
reqwest = { workspace = true }
34-
sailfish-types = { path = "../sailfish-types", optional = true }
35-
secp256k1 = { workspace = true }
3623
serde = { workspace = true }
37-
serde_json = { workspace = true }
38-
thiserror = { workspace = true }
3924
timeboost-crypto = { path = "../timeboost-crypto" }
4025
timeboost-types = { path = "../timeboost-types", features = ["arbitrary"] }
4126
tokio = { workspace = true }
42-
toml = { workspace = true }
4327
tracing = { workspace = true }
4428
tracing-subscriber = { workspace = true }
45-
url = { workspace = true }

timeboost/src/binaries/sailfish.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use sailfish::{
1313
types::{Action, HasTime, Timestamp, UNKNOWN_COMMITTEE_ID},
1414
};
1515
use serde::{Deserialize, Serialize};
16-
use timeboost::conf::NodeConfig;
16+
use timeboost::config::NodeConfig;
1717
use timeboost_contract::{CommitteeMemberSol, KeyManager};
1818
use timeboost_types::provider;
1919
use timeboost_utils::types::logging;

timeboost/src/binaries/timeboost.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use anyhow::ensure;
2121
use timeboost_utils::until::run_until;
2222

2323
use clap::Parser;
24-
use timeboost::conf::{CERTIFIER_PORT_OFFSET, DECRYPTER_PORT_OFFSET, NodeConfig};
24+
use timeboost::config::{CERTIFIER_PORT_OFFSET, DECRYPTER_PORT_OFFSET, NodeConfig};
2525
use timeboost::types::UNKNOWN_COMMITTEE_ID;
2626
use timeboost_utils::types::logging;
2727
use timeboost_utils::wait_for_live_peer;
File renamed without changes.

timeboost/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mod config;
1+
mod conf;
22

33
use std::iter::once;
44
use std::sync::Arc;
@@ -14,9 +14,9 @@ use tokio::select;
1414
use tokio::sync::mpsc::{self, Receiver, Sender};
1515
use tracing::{info, warn};
1616

17-
pub use config::{TimeboostConfig, TimeboostConfigBuilder};
17+
pub use conf::{TimeboostConfig, TimeboostConfigBuilder};
1818
pub use timeboost_builder as builder;
19-
pub use timeboost_config as conf;
19+
pub use timeboost_config as config;
2020
pub use timeboost_crypto as crypto;
2121
pub use timeboost_proto as proto;
2222
pub use timeboost_sequencer as sequencer;

0 commit comments

Comments
 (0)