Skip to content

Commit

Permalink
chore: inspectors threshold is decreased for devnet
Browse files Browse the repository at this point in the history
  • Loading branch information
yahortsaryk committed Jan 24, 2025
1 parent 14dfdc7 commit bae62f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions pallets/ddc-verification/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ parameter_types! {
pub const VerificationPalletId: PalletId = PalletId(*b"verifypa");
pub const MajorityOfAggregators: Percent = Percent::from_percent(67);
pub const VerifyAggregatorResponseSignature: bool = false;
pub const MajorityOfValidators: Percent = Percent::from_percent(67);
pub const _MajorityOfValidators: Percent = Percent::from_percent(67);
pub const HalfOfValidators: Percent = Percent::from_percent(50);
}

impl crate::Config for Test {
Expand All @@ -237,7 +238,7 @@ impl crate::Config for Test {
const BLOCK_TO_START: u16 = 100;
const DAC_REDUNDANCY_FACTOR: u16 = 3;
type AggregatorsQuorum = MajorityOfAggregators;
type ValidatorsQuorum = MajorityOfValidators;
type ValidatorsQuorum = HalfOfValidators;
const MAX_PAYOUT_BATCH_SIZE: u16 = MAX_PAYOUT_BATCH_SIZE;
const MAX_PAYOUT_BATCH_COUNT: u16 = MAX_PAYOUT_BATCH_COUNT;
type ValidatorStaking = Staking;
Expand Down
9 changes: 5 additions & 4 deletions runtime/cere-dev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 72003,
spec_version: 72004,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 24,
Expand Down Expand Up @@ -1235,7 +1235,7 @@ impl pallet_ddc_payouts::Config for Runtime {
type AccountIdConverter = AccountId32;
type Hasher = BlakeTwo256;
type ClusterValidator = pallet_ddc_clusters::Pallet<Runtime>;
type ValidatorsQuorum = MajorityOfValidators;
type ValidatorsQuorum = HalfOfValidators;
}

parameter_types! {
Expand Down Expand Up @@ -1309,7 +1309,8 @@ impl<DdcOrigin: Get<T::RuntimeOrigin>, T: frame_system::Config> GetDdcOrigin<T>
parameter_types! {
pub const VerificationPalletId: PalletId = PalletId(*b"verifypa");
pub const MajorityOfAggregators: Percent = Percent::from_percent(67);
pub const MajorityOfValidators: Percent = Percent::from_percent(67);
pub const _MajorityOfValidators: Percent = Percent::from_percent(67);
pub const HalfOfValidators: Percent = Percent::from_percent(50);
}
impl pallet_ddc_verification::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
Expand All @@ -1325,7 +1326,7 @@ impl pallet_ddc_verification::Config for Runtime {
const BLOCK_TO_START: u16 = 1; // every block
const DAC_REDUNDANCY_FACTOR: u16 = 3;
type AggregatorsQuorum = MajorityOfAggregators;
type ValidatorsQuorum = MajorityOfValidators;
type ValidatorsQuorum = HalfOfValidators;
const MAX_PAYOUT_BATCH_SIZE: u16 = MAX_PAYOUT_BATCH_SIZE;
const MAX_PAYOUT_BATCH_COUNT: u16 = MAX_PAYOUT_BATCH_COUNT;
type ValidatorStaking = pallet_staking::Pallet<Runtime>;
Expand Down
2 changes: 1 addition & 1 deletion runtime/cere/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 72003,
spec_version: 72004,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 24,
Expand Down

0 comments on commit bae62f4

Please sign in to comment.