Skip to content

Commit

Permalink
fix(inspection): skipping challenging if there is no sample size calc…
Browse files Browse the repository at this point in the history
…ulated
  • Loading branch information
yahortsaryk committed Jan 24, 2025
1 parent ffd1028 commit 59899ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions pallets/ddc-verification/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1414,14 +1414,12 @@ pub mod pallet {
val.pop_first().expect("Collected activity records to exist.");
let collector_key = phd_id.0.clone();

if node_leaves_count == 0 {
continue;
}
let n = match calculate_sample_size_fin(n0, node_leaves_count) {
Ok(n) => n,
Err(_) => continue,
};

let n = calculate_sample_size_fin(n0, node_leaves_count)
.expect("Sample size to be calculated.");
let n_per_tcaa = n / node_tcaa_count;

if n_per_tcaa == 0 {
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion 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: 72001,
spec_version: 72002,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 24,
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: 72001,
spec_version: 72002,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 24,
Expand Down

0 comments on commit 59899ed

Please sign in to comment.