Skip to content

Commit

Permalink
Remove _ prefix from used functions
Browse files Browse the repository at this point in the history
  • Loading branch information
khssnv committed Nov 7, 2024
1 parent 977ef3a commit 5d6c8fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions pallets/ddc-verification/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,7 @@ pub mod pallet {
// let is_passed = Self::_challenge_aggregate(_cluster_id, _era_id,
// &defective_aggregate)?;
if should_challenge {
is_passed = Self::_challenge_aggregate_proto(
is_passed = Self::challenge_aggregate_proto(
_cluster_id,
_era_id,
&defective_aggregate,
Expand Down Expand Up @@ -1798,7 +1798,7 @@ pub mod pallet {
);

let aggregate_key = aggregate.get_key();
let merkle_node_ids = Self::_find_random_merkle_node_ids(
let merkle_node_ids = Self::find_random_merkle_node_ids(
number_of_identifiers.into(),
aggregate.get_number_of_leaves(),
aggregate_key.clone(),
Expand Down Expand Up @@ -1888,7 +1888,7 @@ pub mod pallet {
Ok(is_matched)
}

pub(crate) fn _challenge_aggregate_proto<A: Aggregate>(
pub(crate) fn challenge_aggregate_proto<A: Aggregate>(
cluster_id: &ClusterId,
era_id: DdcEra,
aggregate: &A,
Expand All @@ -1900,7 +1900,7 @@ pub mod pallet {
);

let aggregate_key = aggregate.get_key();
let merkle_node_ids = Self::_find_random_merkle_node_ids(
let merkle_node_ids = Self::find_random_merkle_node_ids(
number_of_identifiers.into(),
aggregate.get_number_of_leaves(),
aggregate_key.clone(),
Expand Down Expand Up @@ -2006,7 +2006,7 @@ pub mod pallet {
Ok(resulting_hash)
}

pub(crate) fn _find_random_merkle_node_ids(
pub(crate) fn find_random_merkle_node_ids(
number_of_identifiers: usize,
number_of_leaves: u64,
aggregate_key: AggregateKey,
Expand Down
2 changes: 1 addition & 1 deletion pallets/ddc-verification/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2978,7 +2978,7 @@ fn test_find_random_merkle_node_ids() {

let number_of_leaves = deffective_bucket_sub_aggregate.get_number_of_leaves();

let ids = DdcVerification::_find_random_merkle_node_ids(
let ids = DdcVerification::find_random_merkle_node_ids(
3,
number_of_leaves,
deffective_bucket_sub_aggregate.get_key(),
Expand Down

0 comments on commit 5d6c8fb

Please sign in to comment.