Skip to content

Commit

Permalink
rename param node_pub_key to node_type
Browse files Browse the repository at this point in the history
  • Loading branch information
Raid5594 committed Nov 7, 2023
1 parent 9fccd39 commit c6522e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pallets/ddc-clusters/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ pub mod pallet {

fn get_bond_size(
cluster_id: &ClusterId,
node_pub_key: NodeType,
node_type: NodeType,
) -> Result<u128, ClusterVisitorError> {
// ensure!(ClustersNodes::<T>::contains_key(cluster_id),
// Error::<T>::ClusterDoesNotExist);
Expand Down
2 changes: 1 addition & 1 deletion pallets/ddc-staking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl<T: Config> ClusterVisitor<T> for TestClusterVisitor {
}
fn get_bond_size(
_cluster_id: &ClusterId,
_node_pub_key: NodeType,
_node_type: NodeType,
) -> Result<u128, ClusterVisitorError> {
Ok(10)
}
Expand Down
2 changes: 1 addition & 1 deletion traits/src/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub trait ClusterVisitor<T: Config> {

fn get_bond_size(
cluster_id: &ClusterId,
node_pub_key: NodeType,
node_type: NodeType,
) -> Result<u128, ClusterVisitorError>;
}

Expand Down

0 comments on commit c6522e1

Please sign in to comment.