Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Allow 24 nominations per validator and publish count #7929

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
remove cfg
  • Loading branch information
kianenigma committed Jan 21, 2021
commit a128b7ac0c3c8ed554cb32b8ce1049fcafb81105
1 change: 0 additions & 1 deletion primitives/npos-elections/compact/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ fn struct_def(
Ok(assignments)
}

#[cfg(any(feature = "std", test))]
fn add_edge(&mut self, voter: Self::Voter, target: Self::Target) {
self.#single_field_name.push((voter, target));
}
Expand Down
5 changes: 1 addition & 4 deletions primitives/npos-elections/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,7 @@ pub trait CompactSolution: Sized {
}

/// Add a single edge 1-to-1 edge.
#[cfg(any(feature = "std", test))]
fn add_edge(&mut self, _voter: Self::Voter, _target: Self::Target) {
panic!("add_edge not implemented and cannot be used.")
}
fn add_edge(&mut self, _voter: Self::Voter, _target: Self::Target);
}

// re-export the compact solution type.
Expand Down