File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ pub struct PublicHotShotConfig {
55
55
num_nodes_with_stake : NonZeroUsize ,
56
56
known_nodes_with_stake : Vec < PeerConfig < SeqTypes > > ,
57
57
known_da_nodes : Vec < PeerConfig < SeqTypes > > ,
58
+ #[ serde( default ) ]
58
59
da_committees : BTreeMap < u64 , Vec < PeerConfig < SeqTypes > > > ,
59
60
da_staked_committee_size : usize ,
60
61
fixed_leader_for_gpuvid : usize ,
Original file line number Diff line number Diff line change @@ -1699,7 +1699,7 @@ impl EpochCommittees {
1699
1699
let da_members = da_committees
1700
1700
. get ( & Epoch :: new ( 0 ) )
1701
1701
. cloned ( )
1702
- . expect ( "Should always have an epoch 0 DA committee" ) ;
1702
+ . unwrap_or_default ( ) ; // For testing reasons, we want to support being given an empty map
1703
1703
1704
1704
// For each member, get the stake table entry
1705
1705
let stake_table: Vec < _ > = committee_members
You can’t perform that action at this time.
0 commit comments