Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Hernando Castano <[email protected]>
  • Loading branch information
JesseAbram and HCastano authored Jul 17, 2024
1 parent 7c09edf commit 5432748
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ At the moment this project **does not** adhere to
- Add Signer groups and rotation ([#938](https://github.com/entropyxyz/entropy-core/pull/938))

### Breaking Changes
- In [#938](https://github.com/entropyxyz/entropy-core/pull/938) As the network readys for signer subgroups `Signers` are added to the chain config, currently the creation of the config file should select and assign them
- In [#938](https://github.com/entropyxyz/entropy-core/pull/938), the chainspec got a couple of new
fields, `pallet_staking_extension::initial_signers`, `pallet_parameters::total_signers`, and
`pallet_parameters::threshold`, which are used to set up the initial threshold signing
configuration for the network.

## [0.2.0](https://github.com/entropyxyz/entropy-core/compare/release/v0.1.0...release/v0.2.0) - 2024-07-11

Expand Down
2 changes: 1 addition & 1 deletion pallets/parameters/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ benchmarks! {

change_signers_info {
let origin = T::UpdateOrigin::try_successful_origin().unwrap();
let signer_info = SignersSize { total_signers: 5, threshold: 3 };
let signer_info = SignersSize { total_signers: TOTAL_SIGNERS, threshold: SIGNER_THRESHOLD };
}: {
assert_ok!(
<Parameters<T>>::change_signers_info(origin, signer_info.total_signers, signer_info.threshold)
Expand Down
2 changes: 1 addition & 1 deletion pallets/parameters/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ pub mod module {
Ok(())
}

/// Changes the signer info
/// Changes the threshold related parameters for signing.
#[pallet::call_index(2)]
#[pallet::weight(T::WeightInfo::change_signers_info())]
pub fn change_signers_info(
Expand Down
2 changes: 1 addition & 1 deletion pallets/staking/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ fn it_declares_synced() {
#[test]
fn it_tests_new_session_handler() {
new_test_ext().execute_with(|| {
// start with current validators as 6 and 5
// Start with current validators as 5 and 6 based off the Mock `GenesisConfig`.

// no next signers at start
assert_eq!(Staking::next_signers().len(), 0);
Expand Down

0 comments on commit 5432748

Please sign in to comment.