Skip to content

Commit 2ba49dd

Browse files
committed
fix test failures
1 parent 0f33ed3 commit 2ba49dd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

types/src/v0/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ pub struct PublicHotShotConfig {
5555
num_nodes_with_stake: NonZeroUsize,
5656
known_nodes_with_stake: Vec<PeerConfig<SeqTypes>>,
5757
known_da_nodes: Vec<PeerConfig<SeqTypes>>,
58+
#[serde(default)]
5859
da_committees: BTreeMap<u64, Vec<PeerConfig<SeqTypes>>>,
5960
da_staked_committee_size: usize,
6061
fixed_leader_for_gpuvid: usize,

types/src/v0/impls/stake_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ impl EpochCommittees {
16991699
let da_members = da_committees
17001700
.get(&Epoch::new(0))
17011701
.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
17031703

17041704
// For each member, get the stake table entry
17051705
let stake_table: Vec<_> = committee_members

0 commit comments

Comments
 (0)