Skip to content

Commit

Permalink
Reverted renaming of the INITIAL_UTXO_CONSOLIDATION_PARAMETERS
Browse files Browse the repository at this point in the history
  • Loading branch information
syan095 committed Mar 10, 2024
1 parent 88bac78 commit fc752fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions state-chain/pallets/cf-environment/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@ mod benchmarks {
#[benchmark]
fn update_consolidation_parameters() {
let origin = T::EnsureGovernance::try_successful_origin().unwrap();
let call = Call::<T>::update_consolidation_parameters {
params: INITIAL_UTXO_CONSOLIDATION_PARAMETERS,
};
let call =
Call::<T>::update_consolidation_parameters { params: INITIAL_CONSOLIDATION_PARAMETERS };

#[block]
{
assert_ok!(call.dispatch_bypass_filter(origin));
}

assert_eq!(ConsolidationParameters::<T>::get(), INITIAL_UTXO_CONSOLIDATION_PARAMETERS);
assert_eq!(ConsolidationParameters::<T>::get(), INITIAL_CONSOLIDATION_PARAMETERS);
}

impl_benchmark_test_suite!(Pallet, crate::mock::new_test_ext(), crate::mock::Test);
Expand Down
4 changes: 2 additions & 2 deletions state-chain/pallets/cf-environment/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub mod migrations;

pub const PALLET_VERSION: StorageVersion = StorageVersion::new(8);

const INITIAL_UTXO_CONSOLIDATION_PARAMETERS: utxo_selection::ConsolidationParameters =
const INITIAL_CONSOLIDATION_PARAMETERS: utxo_selection::ConsolidationParameters =
utxo_selection::ConsolidationParameters {
consolidation_threshold: 200,
consolidation_size: 100,
Expand Down Expand Up @@ -342,7 +342,7 @@ pub mod pallet {
PolkadotProxyAccountNonce::<T>::set(0);

BitcoinAvailableUtxos::<T>::set(vec![]);
ConsolidationParameters::<T>::set(INITIAL_UTXO_CONSOLIDATION_PARAMETERS);
ConsolidationParameters::<T>::set(INITIAL_CONSOLIDATION_PARAMETERS);

ChainflipNetworkEnvironment::<T>::set(self.network_environment);

Expand Down

0 comments on commit fc752fe

Please sign in to comment.