mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 06:44:35 +00:00
#6296: Deterministic RNG in peer DAS publish block tests Made test functions to call publish-block APIs with true for the deterministic RNG boolean parameter while production code with false. This will deterministically shuffle columns for unit tests under broadcast_validation_tests.rs.
This commit is contained in:
@@ -92,6 +92,7 @@ use operation_pool::{
|
||||
};
|
||||
use parking_lot::{Mutex, RwLock, RwLockWriteGuard};
|
||||
use proto_array::{DoNotReOrg, ProposerHeadError};
|
||||
use rand::RngCore;
|
||||
use safe_arith::SafeArith;
|
||||
use slasher::Slasher;
|
||||
use slot_clock::SlotClock;
|
||||
@@ -491,6 +492,8 @@ pub struct BeaconChain<T: BeaconChainTypes> {
|
||||
pub data_availability_checker: Arc<DataAvailabilityChecker<T>>,
|
||||
/// The KZG trusted setup used by this chain.
|
||||
pub kzg: Arc<Kzg>,
|
||||
/// RNG instance used by the chain. Currently used for shuffling column sidecars in block publishing.
|
||||
pub rng: Arc<Mutex<Box<dyn RngCore + Send>>>,
|
||||
}
|
||||
|
||||
pub enum BeaconBlockResponseWrapper<E: EthSpec> {
|
||||
|
||||
Reference in New Issue
Block a user