From cc476980c648d8e6b48394bb287c4f6cc7d06c94 Mon Sep 17 00:00:00 2001 From: KaffinPX Date: Thu, 1 Oct 2026 19:04:17 +0300 Subject: [PATCH 1/4] feat: Bump tasm-lib to v9.0.0 --- consensus/Cargo.toml | 2 +- node/Cargo.toml | 2 +- p2p/Cargo.toml | 2 +- rpc/core/Cargo.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/consensus/Cargo.toml b/consensus/Cargo.toml index 47d0cba..eea4262 100644 --- a/consensus/Cargo.toml +++ b/consensus/Cargo.toml @@ -10,7 +10,7 @@ repository = "https://github.com/Nyksnet/nyksnode/" [dependencies] itertools = "0.14" -tasm-lib = "8.0.0" +tasm-lib = "9.0.0" get-size2 = { version = "0.7", features = ["derive"] } anyhow = { version = "1.0", features = ["backtrace"] } serde = { version = "1.0", features = ["derive"] } diff --git a/node/Cargo.toml b/node/Cargo.toml index 9af081c..847d246 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -90,7 +90,7 @@ regex = "1.11.0" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" strum = { version = "0.27.0", features = ["derive"] } -tasm-lib = "8.0.0" +tasm-lib = "9.0.0" tokio = { version = "1.47", features = ["fs", "io-util", "macros", "process", "signal", "sync", "time", "tracing"] } tokio-util = { version = "0.7", features = ["codec", "rt", "compat"] } tracing = "0.1" diff --git a/p2p/Cargo.toml b/p2p/Cargo.toml index 7145b01..1281c08 100644 --- a/p2p/Cargo.toml +++ b/p2p/Cargo.toml @@ -10,7 +10,7 @@ repository = "https://github.com/Nyksnet/nyksnode/" [dependencies] itertools = "0.14" -tasm-lib = "8.0.0" +tasm-lib = "9.0.0" anyhow = { version = "1.0", features = ["backtrace"] } serde = { version = "1.0", features = ["derive"] } rand = "0.9" diff --git a/rpc/core/Cargo.toml b/rpc/core/Cargo.toml index ea3cde1..1595875 100644 --- a/rpc/core/Cargo.toml +++ b/rpc/core/Cargo.toml @@ -14,7 +14,7 @@ serde_json = "1.0" thiserror = "1.0.65" nyks-consensus = { version = "0.8.0", path = "../../consensus" } nyks-standards = { version = "0.8.0", path = "../../standards" } -tasm-lib = "8.0.0" +tasm-lib = "9.0.0" hex = "0.4.3" serde_tuple = "1.1.3" serde_arrays = "0.2" From a57da4851faaa4214a613300218d5a4202995a08 Mon Sep 17 00:00:00 2001 From: KaffinPX Date: Thu, 1 Oct 2026 19:14:59 +0300 Subject: [PATCH 2/4] feat: Bump rand and get-size2 versions --- composer/Cargo.toml | 2 +- composer/src/composer/prover/transaction.rs | 2 +- consensus/Cargo.toml | 4 ++-- consensus/src/block/block_appendix.rs | 1 + consensus/src/block/block_height.rs | 1 + consensus/src/block/difficulty_control.rs | 1 + consensus/src/block/mod.rs | 2 +- consensus/src/block/pow.rs | 1 + consensus/src/transaction/lock_script.rs | 2 +- consensus/src/transaction/salted_utxos.rs | 2 +- .../src/transaction/validity/removal_records_integrity.rs | 2 +- .../validity/tasm/claims/generate_single_proof_claim.rs | 2 +- consensus/src/transaction/validity/tasm/claims/new_claim.rs | 2 +- database/Cargo.toml | 2 +- database/src/storage/storage_schema/mod.rs | 2 +- database/src/storage/storage_vec/mod.rs | 2 +- miner/Cargo.toml | 2 +- miner/src/miner/guesser.rs | 2 +- node/Cargo.toml | 6 +++--- p2p/Cargo.toml | 2 +- rpc/client/Cargo.toml | 2 +- wallet/core/Cargo.toml | 2 +- wallet/core/src/entropy/secret_key_material.rs | 2 +- 23 files changed, 26 insertions(+), 22 deletions(-) diff --git a/composer/Cargo.toml b/composer/Cargo.toml index 594930b..ed67f58 100644 --- a/composer/Cargo.toml +++ b/composer/Cargo.toml @@ -21,7 +21,7 @@ tracing = "0.1.41" tracing-subscriber = { version = "0.3.19", features = ["env-filter"] } clap = { version = "4.5.54", features = ["derive"] } num-traits = "0.2.19" -rand = "0.9" +rand = "0.10" thiserror = "1.0.65" [dev-dependencies] diff --git a/composer/src/composer/prover/transaction.rs b/composer/src/composer/prover/transaction.rs index 92f743c..3e19be3 100644 --- a/composer/src/composer/prover/transaction.rs +++ b/composer/src/composer/prover/transaction.rs @@ -22,7 +22,7 @@ use nyks_rpc_client::http::HttpClient; use nyks_wallet_core::transaction::builder::TransactionBuilder; use nyks_wallet_core::transaction::builder::input::TxInputList; use nyks_wallet_core::transaction::builder::output::TxOutput; -use rand::Rng; +use rand::RngExt; use rand::SeedableRng; use rand::rngs::StdRng; use thiserror::Error; diff --git a/consensus/Cargo.toml b/consensus/Cargo.toml index eea4262..29252e5 100644 --- a/consensus/Cargo.toml +++ b/consensus/Cargo.toml @@ -11,10 +11,10 @@ repository = "https://github.com/Nyksnet/nyksnode/" [dependencies] itertools = "0.14" tasm-lib = "9.0.0" -get-size2 = { version = "0.7", features = ["derive"] } +get-size2 = { version = "0.9", features = ["derive"] } anyhow = { version = "1.0", features = ["backtrace"] } serde = { version = "1.0", features = ["derive"] } -rand = "0.9" +rand = "0.10" num-rational = "0.4" num-traits = "0.2" tracing = "0.1" diff --git a/consensus/src/block/block_appendix.rs b/consensus/src/block/block_appendix.rs index 6f4df0b..8048272 100644 --- a/consensus/src/block/block_appendix.rs +++ b/consensus/src/block/block_appendix.rs @@ -2,6 +2,7 @@ use std::ops::Deref; use get_size2::GetSize; use itertools::Itertools; +use rand::RngExt; use serde::Deserialize; use serde::Serialize; use tasm_lib::prelude::Digest; diff --git a/consensus/src/block/block_height.rs b/consensus/src/block/block_height.rs index 7bb5ffa..b134876 100644 --- a/consensus/src/block/block_height.rs +++ b/consensus/src/block/block_height.rs @@ -9,6 +9,7 @@ use num_traits::ConstZero; use num_traits::One; use num_traits::Zero; use rand::Rng; +use rand::RngExt; use rand::distr::Distribution; use rand::distr::StandardUniform; use serde::Deserialize; diff --git a/consensus/src/block/difficulty_control.rs b/consensus/src/block/difficulty_control.rs index 934cb81..41d58a0 100644 --- a/consensus/src/block/difficulty_control.rs +++ b/consensus/src/block/difficulty_control.rs @@ -13,6 +13,7 @@ use num_traits::FromPrimitive; use num_traits::ToPrimitive; use num_traits::Zero; use rand::Rng; +use rand::RngExt; use rand::distr::Distribution; use rand::distr::StandardUniform; use serde::Deserialize; diff --git a/consensus/src/block/mod.rs b/consensus/src/block/mod.rs index 24dd483..56d0dff 100644 --- a/consensus/src/block/mod.rs +++ b/consensus/src/block/mod.rs @@ -25,7 +25,7 @@ use get_size2::GetSize; use itertools::Itertools; use mutator_set_update::MutatorSetUpdate; use num_traits::Zero; -use rand::Rng; +use rand::RngExt; use rand::SeedableRng; use rand::rngs::StdRng; use serde::Deserialize; diff --git a/consensus/src/block/pow.rs b/consensus/src/block/pow.rs index 9d56ac4..edcd503 100644 --- a/consensus/src/block/pow.rs +++ b/consensus/src/block/pow.rs @@ -5,6 +5,7 @@ use std::num::NonZeroUsize; use get_size2::GetSize; use itertools::Itertools; use rand::Rng; +use rand::RngExt; use rand::distr::Distribution; use rand::distr::StandardUniform; use rayon::iter::IndexedParallelIterator; diff --git a/consensus/src/transaction/lock_script.rs b/consensus/src/transaction/lock_script.rs index fb31b19..6840ddb 100644 --- a/consensus/src/transaction/lock_script.rs +++ b/consensus/src/transaction/lock_script.rs @@ -2,7 +2,7 @@ use std::collections::HashMap; use get_size2::GetSize; use itertools::Itertools; -use rand::Rng; +use rand::RngExt; use serde::Deserialize; use serde::Serialize; use tasm_lib::triton_vm; diff --git a/consensus/src/transaction/salted_utxos.rs b/consensus/src/transaction/salted_utxos.rs index e38f349..71bd430 100644 --- a/consensus/src/transaction/salted_utxos.rs +++ b/consensus/src/transaction/salted_utxos.rs @@ -2,7 +2,7 @@ use std::fmt::Display; use get_size2::GetSize; use itertools::Itertools; -use rand::Rng; +use rand::RngExt; use rand::rngs::StdRng; use serde::Deserialize; use serde::Serialize; diff --git a/consensus/src/transaction/validity/removal_records_integrity.rs b/consensus/src/transaction/validity/removal_records_integrity.rs index a63b653..b99f3d5 100644 --- a/consensus/src/transaction/validity/removal_records_integrity.rs +++ b/consensus/src/transaction/validity/removal_records_integrity.rs @@ -5,7 +5,7 @@ use field_count::FieldCount; use get_size2::GetSize; use itertools::Itertools; use rand::Rng; -use rand::RngCore; +use rand::RngExt; use rand::SeedableRng; use rand::rngs::StdRng; use serde::Deserialize; diff --git a/consensus/src/transaction/validity/tasm/claims/generate_single_proof_claim.rs b/consensus/src/transaction/validity/tasm/claims/generate_single_proof_claim.rs index 204b712..3d55008 100644 --- a/consensus/src/transaction/validity/tasm/claims/generate_single_proof_claim.rs +++ b/consensus/src/transaction/validity/tasm/claims/generate_single_proof_claim.rs @@ -67,7 +67,7 @@ impl BasicSnippet for GenerateSingleProofClaim { mod tests { use std::collections::HashMap; - use rand::Rng; + use rand::RngExt; use rand::prelude::StdRng; use tasm_lib::memory::encode_to_memory; use tasm_lib::rust_shadowing_helper_functions; diff --git a/consensus/src/transaction/validity/tasm/claims/new_claim.rs b/consensus/src/transaction/validity/tasm/claims/new_claim.rs index f33b5f3..a2036a5 100644 --- a/consensus/src/transaction/validity/tasm/claims/new_claim.rs +++ b/consensus/src/transaction/validity/tasm/claims/new_claim.rs @@ -110,7 +110,7 @@ impl BasicSnippet for NewClaim { mod tests { use std::collections::HashMap; - use rand::Rng; + use rand::RngExt; use rand::SeedableRng; use rand::rngs::StdRng; use tasm_lib::prelude::BasicSnippet; diff --git a/database/Cargo.toml b/database/Cargo.toml index 6a08269..a1f70a9 100644 --- a/database/Cargo.toml +++ b/database/Cargo.toml @@ -20,7 +20,7 @@ bincode = "1.3" futures = "0.3" itertools = "0.14" leveldb-sys = "2.0.9" -rand = "0.9" +rand = "0.10" rs-leveldb = "0.1.5" serde = { version = "1.0", features = ["derive"] } tokio = { version = "1.47", features = ["rt", "sync", "macros"] } diff --git a/database/src/storage/storage_schema/mod.rs b/database/src/storage/storage_schema/mod.rs index 764bff8..76df5ff 100644 --- a/database/src/storage/storage_schema/mod.rs +++ b/database/src/storage/storage_schema/mod.rs @@ -56,7 +56,7 @@ mod tests { use itertools::Itertools; use rand::random; use rand::Rng; - use rand::RngCore; + use rand::RngExt; use serde::Deserialize; use serde::Serialize; use twenty_first::math::other::random_elements; diff --git a/database/src/storage/storage_vec/mod.rs b/database/src/storage/storage_vec/mod.rs index ce907ca..eb607d3 100644 --- a/database/src/storage/storage_vec/mod.rs +++ b/database/src/storage/storage_vec/mod.rs @@ -27,7 +27,7 @@ mod tests { use itertools::Itertools; use rand::Rng; - use rand::RngCore; + use rand::RngExt; use super::traits::*; use super::*; diff --git a/miner/Cargo.toml b/miner/Cargo.toml index 622482d..8e47c27 100644 --- a/miner/Cargo.toml +++ b/miner/Cargo.toml @@ -20,7 +20,7 @@ tracing-subscriber = { version = "0.3.19", features = ["env-filter"] } clap = { version = "4.5.54", features = ["derive"] } num-traits = "0.2.19" rayon = "1.10" -rand = "0.9" +rand = "0.10" [dev-dependencies] diff --git a/miner/src/miner/guesser.rs b/miner/src/miner/guesser.rs index 28be83e..4a79727 100644 --- a/miner/src/miner/guesser.rs +++ b/miner/src/miner/guesser.rs @@ -14,7 +14,7 @@ use nyks_consensus::tasm_lib::twenty_first::bfe_array; use nyks_rpc_client::RpcApi; use nyks_rpc_client::http::HttpClient; use nyks_rpc_client::mining::template::RpcBlockTemplate; -use rand::Rng; +use rand::RngExt; use rayon::iter::IntoParallelIterator; use rayon::iter::ParallelIterator; use tokio::sync::RwLock; diff --git a/node/Cargo.toml b/node/Cargo.toml index 847d246..1f96f6c 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -77,7 +77,7 @@ const_format = "0.2.35" console-subscriber = { version = "0.5", optional = true } directories = "5.0" futures = "0.3" -get-size2 = { version = "0.7", features = ["derive"] } +get-size2 = { version = "0.9", features = ["derive"] } itertools = "0.14" memmap2 = "0.9" num-rational = "0.4" @@ -85,7 +85,7 @@ num-traits = "0.2" priority-queue = "1.4" proptest = { version = "1.7", optional = true } proptest-arbitrary-interop = { version = "0.1", optional = true } -rand = "0.9" +rand = "0.10" regex = "1.11.0" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" @@ -149,7 +149,7 @@ divan = { version = "4.3.0", package = "codspeed-divan-compat" } macro_rules_attr = "0.1.3" proptest = { version = "1.7" } proptest-arbitrary-interop = { version = "0.1" } -rand_distr = "0.5" +rand_distr = "0.6" rayon = "1.10" statrs = "0.18.0" test-strategy = "0.3" diff --git a/p2p/Cargo.toml b/p2p/Cargo.toml index 1281c08..597b9ef 100644 --- a/p2p/Cargo.toml +++ b/p2p/Cargo.toml @@ -13,7 +13,7 @@ itertools = "0.14" tasm-lib = "9.0.0" anyhow = { version = "1.0", features = ["backtrace"] } serde = { version = "1.0", features = ["derive"] } -rand = "0.9" +rand = "0.10" num-traits = "0.2" tracing = "0.1" thiserror = "1.0.65" diff --git a/rpc/client/Cargo.toml b/rpc/client/Cargo.toml index f53c4d4..838b646 100644 --- a/rpc/client/Cargo.toml +++ b/rpc/client/Cargo.toml @@ -20,7 +20,7 @@ async-trait = "0.1.83" [dev-dependencies] itertools = "0.14" -rand = "0.9" +rand = "0.10" tokio = { version = "1.47", features = ["fs", "io-util", "sync", "macros", "time", "tracing"] } num-traits = "0.2" diff --git a/wallet/core/Cargo.toml b/wallet/core/Cargo.toml index a89cc15..85b7fcd 100644 --- a/wallet/core/Cargo.toml +++ b/wallet/core/Cargo.toml @@ -16,7 +16,7 @@ num-traits = "0.2.19" serde = "1.0.228" itertools = "0.14.0" thiserror = "1.0.65" -rand = "0.9" +rand = "0.10" zeroize = "1.8.1" tiny-bip39 = "1.0" diff --git a/wallet/core/src/entropy/secret_key_material.rs b/wallet/core/src/entropy/secret_key_material.rs index f89a99b..c8d0c15 100644 --- a/wallet/core/src/entropy/secret_key_material.rs +++ b/wallet/core/src/entropy/secret_key_material.rs @@ -6,7 +6,7 @@ use nyks_consensus::BFieldElement; use nyks_consensus::triton_vm::prelude::XFieldElement; use nyks_consensus::twenty_first::prelude::Polynomial; use nyks_consensus::twenty_first::xfe; -use rand::Rng; +use rand::RngExt; use rand::SeedableRng; use rand::rng; use rand::rngs::StdRng; From 94916371348d7aa62a889f7f1a598c1284cbe17e Mon Sep 17 00:00:00 2001 From: KaffinPX Date: Thu, 1 Oct 2026 19:28:38 +0300 Subject: [PATCH 3/4] feat: Adapt rest of codebase for new rand --- node/src/application/loops/peer_loop.rs | 4 ++-- node/src/application/loops/sync_loop.rs | 2 +- node/src/application/loops/sync_loop/rapid_block_download.rs | 2 +- node/src/application/network/actor.rs | 2 +- node/src/application/network/overview.rs | 5 ++++- node/src/application/network/reachability.rs | 4 ++++ node/src/state/networking_state.rs | 2 +- p2p/src/peer.rs | 2 +- p2p/src/peer/synchronization_bit_mask.rs | 1 + 9 files changed, 16 insertions(+), 8 deletions(-) diff --git a/node/src/application/loops/peer_loop.rs b/node/src/application/loops/peer_loop.rs index 21cc6fc..e4b0156 100644 --- a/node/src/application/loops/peer_loop.rs +++ b/node/src/application/loops/peer_loop.rs @@ -41,7 +41,7 @@ use nyks_p2p::peer::PeerStanding; use nyks_p2p::peer::PositivePeerSanction; use nyks_p2p::peer::SyncChallenge; use rand::rngs::StdRng; -use rand::Rng; +use rand::RngExt; use rand::SeedableRng; use tasm_lib::triton_vm::prelude::Digest; use tasm_lib::twenty_first::prelude::Mmr; @@ -98,7 +98,7 @@ pub type PeerStandingNumber = i32; /// /// also handles messages from main task over the main-to-peer-tasks broadcast /// channel. -#[derive(Debug, Clone)] +#[derive(Debug)] pub struct PeerLoopHandler { to_main_tx: mpsc::Sender, global_state_lock: GlobalStateLock, diff --git a/node/src/application/loops/sync_loop.rs b/node/src/application/loops/sync_loop.rs index 68ed164..0d612ef 100644 --- a/node/src/application/loops/sync_loop.rs +++ b/node/src/application/loops/sync_loop.rs @@ -9,7 +9,7 @@ use nyks_consensus::block::block_height::BlockHeight; use nyks_consensus::block::Block; use nyks_p2p::peer::synchronization_bit_mask::SynchronizationBitMask; use rand::rng; -use rand::Rng; +use rand::RngExt; use tokio::sync::mpsc; use tokio::sync::mpsc::Receiver; use tokio::sync::mpsc::Sender; diff --git a/node/src/application/loops/sync_loop/rapid_block_download.rs b/node/src/application/loops/sync_loop/rapid_block_download.rs index 02d850a..660bea0 100644 --- a/node/src/application/loops/sync_loop/rapid_block_download.rs +++ b/node/src/application/loops/sync_loop/rapid_block_download.rs @@ -1,8 +1,8 @@ use std::collections::HashMap; use std::path::PathBuf; +use rand::Rng; use rand::rng; -use rand::RngCore; use tokio::fs; use crate::application::loops::sync_loop::SynchronizationBitMask; diff --git a/node/src/application/network/actor.rs b/node/src/application/network/actor.rs index 72e4e62..ea4bb1e 100644 --- a/node/src/application/network/actor.rs +++ b/node/src/application/network/actor.rs @@ -17,7 +17,7 @@ use libp2p::PeerId; use nyks_consensus::network::Network; use nyks_p2p::peer::handshake_data::HandshakeData; use rand::seq::SliceRandom; -use rand::Rng; +use rand::RngExt; use tokio::sync::mpsc; use tokio::task::JoinHandle; use tokio::time::Instant; diff --git a/node/src/application/network/overview.rs b/node/src/application/network/overview.rs index 291b561..066f2fc 100644 --- a/node/src/application/network/overview.rs +++ b/node/src/application/network/overview.rs @@ -122,6 +122,8 @@ mod arbitrary { #[cfg(any(test, feature = "mock-rpc"))] impl rand::distr::Distribution for rand::distr::StandardUniform { fn sample(&self, rng: &mut R) -> NetworkOverview { + use rand::RngExt; + const SHA256_CODE: u64 = 0x12; let raw_hash = rng.random::<[u8; 32]>(); let multihash = libp2p::multihash::Multihash::wrap(SHA256_CODE, &raw_hash) @@ -174,7 +176,8 @@ mod tests { use std::hint::black_box; use proptest_arbitrary_interop::arb; - use rand::rng; + use rand::RngExt; +use rand::rng; use rand::Rng; use test_strategy::proptest; diff --git a/node/src/application/network/reachability.rs b/node/src/application/network/reachability.rs index 04782cd..c7e335a 100644 --- a/node/src/application/network/reachability.rs +++ b/node/src/application/network/reachability.rs @@ -210,6 +210,8 @@ impl ReachabilityState { #[cfg(any(test, feature = "mock-rpc"))] impl rand::distr::Distribution for rand::distr::StandardUniform { fn sample(&self, rng: &mut R) -> ReachabilityState { + use rand::RngExt; + let addr = true .then(|| rng.random::<[u8; 4]>()) .map(std::net::Ipv4Addr::from) @@ -231,6 +233,8 @@ impl rand::distr::Distribution for rand::distr::StandardUnifo #[cfg(any(test, feature = "mock-rpc"))] impl rand::distr::Distribution for rand::distr::StandardUniform { fn sample(&self, rng: &mut R) -> RelayStrategy { + use rand::RngExt; + let addr = true .then(|| rng.random::<[u8; 4]>()) .map(std::net::Ipv4Addr::from) diff --git a/node/src/state/networking_state.rs b/node/src/state/networking_state.rs index a86e0c0..b867994 100644 --- a/node/src/state/networking_state.rs +++ b/node/src/state/networking_state.rs @@ -5,7 +5,7 @@ use std::time::SystemTime; use anyhow::Result; use libp2p::PeerId; use rand::rng; -use rand::Rng; +use rand::RngExt; use tasm_lib::prelude::Digest; use tasm_lib::twenty_first::prelude::Mmr; use tasm_lib::twenty_first::util_types::mmr::mmr_accumulator::MmrAccumulator; diff --git a/p2p/src/peer.rs b/p2p/src/peer.rs index 033b58a..86b6080 100644 --- a/p2p/src/peer.rs +++ b/p2p/src/peer.rs @@ -26,7 +26,7 @@ use nyks_consensus::proof_abstractions::timestamp::Timestamp; use nyks_consensus::transaction::transaction_kernel_id::TransactionKernelId; use peer_block_notifications::PeerBlockNotification; use rand::Rng; -use rand::RngCore; +use rand::RngExt; use rand::SeedableRng; use rand::rngs::StdRng; use serde::Deserialize; diff --git a/p2p/src/peer/synchronization_bit_mask.rs b/p2p/src/peer/synchronization_bit_mask.rs index 03991dc..45468ff 100644 --- a/p2p/src/peer/synchronization_bit_mask.rs +++ b/p2p/src/peer/synchronization_bit_mask.rs @@ -4,6 +4,7 @@ use std::ops::Not; use itertools::Itertools; use rand::Rng; +use rand::RngExt; use rand::SeedableRng; use rand::rngs::StdRng; use serde::Deserialize; From 32456965fff7c1b9b5750a7ab40fb220c8fb8608 Mon Sep 17 00:00:00 2001 From: KaffinPX Date: Thu, 1 Oct 2026 19:31:41 +0300 Subject: [PATCH 4/4] style: fmt --- node/src/application/loops/sync_loop/rapid_block_download.rs | 2 +- node/src/application/network/overview.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/node/src/application/loops/sync_loop/rapid_block_download.rs b/node/src/application/loops/sync_loop/rapid_block_download.rs index 660bea0..c8b4a30 100644 --- a/node/src/application/loops/sync_loop/rapid_block_download.rs +++ b/node/src/application/loops/sync_loop/rapid_block_download.rs @@ -1,8 +1,8 @@ use std::collections::HashMap; use std::path::PathBuf; -use rand::Rng; use rand::rng; +use rand::Rng; use tokio::fs; use crate::application::loops::sync_loop::SynchronizationBitMask; diff --git a/node/src/application/network/overview.rs b/node/src/application/network/overview.rs index 066f2fc..cbdc23f 100644 --- a/node/src/application/network/overview.rs +++ b/node/src/application/network/overview.rs @@ -176,9 +176,9 @@ mod tests { use std::hint::black_box; use proptest_arbitrary_interop::arb; - use rand::RngExt; -use rand::rng; + use rand::rng; use rand::Rng; + use rand::RngExt; use test_strategy::proptest; use super::*;