mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-18 12:22:51 +00:00
Better assert message in lookup sampling test (#6473)
* Better assert message in lookup sampling test * Export status * Merge remote-tracking branch 'sigp/unstable' into lookup-sampling-test-assert * Drop unused * Use slice
This commit is contained in:
@@ -354,14 +354,12 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub(crate) fn assert_sampling_request_status(
|
||||
pub(crate) fn get_sampling_request_status(
|
||||
&self,
|
||||
block_root: Hash256,
|
||||
ongoing: &Vec<ColumnIndex>,
|
||||
no_peers: &Vec<ColumnIndex>,
|
||||
) {
|
||||
self.sampling
|
||||
.assert_sampling_request_status(block_root, ongoing, no_peers);
|
||||
index: &ColumnIndex,
|
||||
) -> Option<super::peer_sampling::Status> {
|
||||
self.sampling.get_request_status(block_root, index)
|
||||
}
|
||||
|
||||
fn network_globals(&self) -> &NetworkGlobals<T::EthSpec> {
|
||||
|
||||
Reference in New Issue
Block a user