Skip to content

Commit

Permalink
Add missing traits for Claim and MinerPower (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-shashank authored Oct 31, 2023
1 parent dadcddf commit 84ccddf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion actors/power/src/v8/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ pub fn epoch_key(e: ChainEpoch) -> BytesKey {
bz.into()
}

#[derive(Debug, Serialize_tuple, Deserialize_tuple, Clone, PartialEq)]
#[derive(Debug, Serialize_tuple, Deserialize_tuple, Clone, PartialEq, Eq)]
pub struct Claim {
/// Miner's proof type used to determine minimum miner size
pub window_post_proof_type: RegisteredPoStProof,
Expand Down
2 changes: 1 addition & 1 deletion actors/verifreg/src/v9/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl State {
Ok(())
}
}
#[derive(Serialize_tuple, Deserialize_tuple, Clone, Debug, PartialEq, Eq)]
#[derive(Serialize_tuple, Deserialize_tuple, Clone, Debug, Eq, PartialEq)]
pub struct Claim {
// The provider storing the data (from allocation).
pub provider: ActorID,
Expand Down
2 changes: 1 addition & 1 deletion fil_actor_interface/src/builtin/miner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ impl MinerInfo {
}
}

#[derive(Serialize, Deserialize)]
#[derive(Serialize, Deserialize, Eq, PartialEq, PartialOrd, Ord, Hash)]
pub struct MinerPower {
pub miner_power: Claim,
pub total_power: Claim,
Expand Down
2 changes: 1 addition & 1 deletion fil_actor_interface/src/builtin/power/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ impl State {
}
}

#[derive(Default, Debug, Serialize, Deserialize, Clone)]
#[derive(Default, Debug, Serialize, Deserialize, Clone, Eq, PartialEq, PartialOrd, Ord, Hash)]
pub struct Claim {
/// Sum of raw byte power for a miner's sectors.
pub raw_byte_power: StoragePower,
Expand Down

0 comments on commit 84ccddf

Please sign in to comment.