Skip to content

Commit ffdb860

Browse files
committed
fix build
1 parent 1d0e261 commit ffdb860

File tree

22 files changed

+28
-39
lines changed

22 files changed

+28
-39
lines changed

src/audit/src/lib/tally.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use bech32::{self, Error as Bech32Error, FromBase32};
22
use bech32::{ToBase32, Variant};
33

4-
use chain_crypto::testing::TestCryptoRng;
54
use chain_crypto::{Ed25519, SecretKey};
65
use chain_vote::committee::MemberSecretKey;
76
use chain_vote::tally::batch_decrypt;
@@ -13,6 +12,7 @@ use base64::{engine::general_purpose, Engine as _};
1312

1413
use color_eyre::Result;
1514
use rand_core::SeedableRng;
15+
use rand::rngs::StdRng;
1616

1717
/// A Bech32_encoded address consists of 3 parts: A Human-Readable Part (HRP) + Separator + Data:
1818
const HRP_PK: &str = "ristretto255_memberpk";
@@ -50,7 +50,7 @@ pub fn extract_decrypt_shares(
5050
encrypted_tally: EncryptedTally,
5151
committee_priv_keys: Vec<MemberSecretKey>,
5252
) -> Vec<TallyDecryptShare> {
53-
let mut rng = TestCryptoRng::seed_from_u64(0);
53+
let mut rng = StdRng::seed_from_u64(0);
5454

5555
let mut shares = vec![];
5656

@@ -171,7 +171,7 @@ pub fn decrypt_tally_with_secret_keys(
171171
encrypted_tally: EncryptedTally,
172172
committee_priv_keys: Vec<MemberSecretKey>,
173173
) -> Result<Vec<Tally>, Box<dyn std::error::Error>> {
174-
let mut rng = TestCryptoRng::seed_from_u64(0);
174+
let mut rng = StdRng::seed_from_u64(0);
175175

176176
let mut public_keys = vec![];
177177

src/catalyst-toolbox/catalyst-toolbox/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ assert_cmd = "2"
7272
predicates = "2"
7373
assert_fs = "1.0.0"
7474
chain-vote = { path = "../../chain-libs/chain-vote" }
75-
proptest = { workspace = true, branch = "master" }
75+
proptest = { workspace = true }
7676
test-strategy = "0.2"
7777
serde_test = "1"
7878
snapshot-lib = { path = "../snapshot-lib", features = ["proptest"] }

src/catalyst-toolbox/snapshot-lib/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
1010

1111
[dependencies]
1212
jormungandr-lib = { workspace = true }
13-
proptest = { workspace = true, branch = "master", optional = true }
13+
proptest = { workspace = true, optional = true }
1414
chain-addr = { path = "../../chain-libs/chain-addr" }
1515
test-strategy = { version = "0.2", optional = true }
1616
hex = { version = "0.4" }
@@ -39,7 +39,7 @@ serde_test = { workspace = true }
3939
serde_json = { workspace = true }
4040
serde_yaml = { workspace = true }
4141

42-
proptest = { workspace = true, branch = "master" }
42+
proptest = { workspace = true }
4343
chain-addr = { path = "../../chain-libs/chain-addr" }
4444

4545
[features]

src/jormungandr/jormungandr/src/network/client/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mod connect;
22

3-
pub use self::connect::{connect, ConnectError, ConnectFuture, ConnectHandle};
3+
pub use self::connect::{connect, ConnectError, ConnectHandle};
44
use super::{
55
buffer_sizes,
66
convert::{Decode, Encode},

src/jormungandr/testing/hersir/src/config/blockchain/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
mod configuration;
2-
pub use chain_impl_mockchain::chaintypes::ConsensusVersion;
32
pub use configuration::{BlockchainBuilder, BlockchainConfiguration};
43
use jormungandr_lib::crypto::hash::Hash;
54
use serde::Deserialize;

src/jormungandr/testing/hersir/src/controller/monitor/node/legacy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use chain_impl_mockchain::{
77
header::HeaderId,
88
};
99
pub use jormungandr_automation::jormungandr::{
10-
grpc::JormungandrClient, BackwardCompatibleRest, FragmentNode, FragmentNodeError,
10+
BackwardCompatibleRest, FragmentNode, FragmentNodeError,
1111
JormungandrLogger, JormungandrProcess, JormungandrRest, MemPoolCheck, StartupVerificationMode,
1212
Status,
1313
};

src/jormungandr/testing/hersir/src/controller/monitor/node/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ use chain_core::property::Fragment as _;
77
use chain_impl_mockchain::fragment::{Fragment, FragmentId};
88
use indicatif::ProgressBar;
99
pub use jormungandr_automation::jormungandr::{
10-
grpc::{client::MockClientError, JormungandrClient},
11-
uri_from_socket_addr, FragmentNode, FragmentNodeError, JormungandrLogger, JormungandrRest,
10+
grpc::{client::MockClientError, JormungandrClient}, FragmentNode, FragmentNodeError, JormungandrLogger, JormungandrRest,
1211
MemPoolCheck, RestError,
1312
};
1413
use jormungandr_automation::{

src/jormungandr/testing/jormungandr-automation/src/jcli/command/votes/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ mod tally;
99

1010
pub use committee::CommitteeCommand;
1111
pub use crs::CrsCommand;
12-
pub use election_public_key::ElectionPublicKeyCommand;
1312
pub use tally::TallyCommand;
1413

1514
#[derive(Debug)]

src/jormungandr/testing/jormungandr-automation/src/jormungandr/configuration/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ mod secret;
1313
pub use block0::Block0ConfigurationBuilder;
1414
pub use jormungandr_config::EitherHashOrBlock0;
1515
pub use node::{NodeConfigBuilder, NodeConfigManager};
16-
pub use secret::{NodeSecretExtension, SecretModelFactory};
16+
pub use secret::SecretModelFactory;
1717

1818
lazy_static! {
1919
static ref NEXT_AVAILABLE_PORT_NUMBER: AtomicU16 = AtomicU16::new(10000);

src/jormungandr/testing/jormungandr-automation/src/jormungandr/legacy/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ pub use config::{
88
LegacyConfigError, LegacyNodeConfig, LegacyNodeConfigBuilder, LegacyNodeConfigConverter,
99
LegacyNodeConfigManager,
1010
};
11-
pub use jormungandr_lib::interfaces::{
12-
Log, Mempool, NodeConfig, P2p, Policy, Rest, TopicsOfInterest, TrustedPeer,
13-
};
1411
use jortestkit::file;
1512
pub use rest::BackwardCompatibleRest;
1613
use std::path::PathBuf;

0 commit comments

Comments
 (0)