Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
05baf9c
Maintain peers across all sampling subnets. Make discovery requests i…
jimmygchen Aug 21, 2025
9e87e49
Clean ups.
jimmygchen Aug 21, 2025
232e685
Prioritize unsynced peers for pruning
jimmygchen Aug 21, 2025
edf8571
Remove brittle and unmaintainable test
jimmygchen Aug 21, 2025
6b1f2c8
Fix function behaviour
jimmygchen Aug 21, 2025
901208e
Merge remote-tracking branch 'origin/unstable' into maintain-custody-…
jimmygchen Aug 29, 2025
0a2fd8b
Update peer manager tests to use `MetaDataV3`
jimmygchen Sep 1, 2025
74466bd
Prioritise data column subnet uniform distribution when pruning peers.
jimmygchen Sep 1, 2025
36c5f8a
Refactor prune peer function.
jimmygchen Sep 1, 2025
daa619c
Fix lint
jimmygchen Sep 1, 2025
d34b778
Update tests
jimmygchen Sep 2, 2025
6252834
Merge remote-tracking branch 'origin/unstable' into maintain-custody-…
jimmygchen Sep 2, 2025
7ac2096
Update tests and fix some bugs
jimmygchen Sep 2, 2025
0d06a46
Add additional peer pruning tests on sync status
jimmygchen Sep 2, 2025
4a31198
Fix test flakiness due to sampling subnet computation from random Pee…
jimmygchen Sep 2, 2025
73332c2
Merge branch 'unstable' into maintain-custody-peers
jimmygchen Sep 2, 2025
63ffd1d
Merge branch 'unstable' into maintain-custody-peers
jimmygchen Sep 3, 2025
ac778c6
Update code comments from review
jimmygchen Sep 3, 2025
09d6bbe
Update typo in comment
jimmygchen Sep 4, 2025
20483f9
Fix a pruning bug and update comments.
jimmygchen Sep 4, 2025
de98f29
Merge branch 'maintain-custody-peers' of github.com:jimmygchen/lighth…
jimmygchen Sep 4, 2025
ec88397
Merge branch 'unstable' into maintain-custody-peers
jimmygchen Sep 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions beacon_node/lighthouse_network/src/discovery/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ impl<E: EthSpec> Discovery<E> {
#[cfg(test)]
mod tests {
use super::*;
use crate::rpc::methods::{MetaData, MetaDataV2};
use crate::rpc::methods::{MetaData, MetaDataV3};
use libp2p::identity::secp256k1;
use types::{BitVector, MinimalEthSpec, SubnetId};

Expand All @@ -1248,10 +1248,11 @@ mod tests {
.unwrap();
let globals = NetworkGlobals::new(
enr,
MetaData::V2(MetaDataV2 {
MetaData::V3(MetaDataV3 {
seq_number: 0,
attnets: Default::default(),
syncnets: Default::default(),
custody_group_count: spec.custody_requirement,
}),
vec![],
false,
Expand Down
Loading
Loading