mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 13:27:57 +00:00
network-bridge: downgrade log level of benefit rep change (#3068)
* network-bridge: downgrade log level of benefit rep change * remove it as we log it at higher level
This commit is contained in:
@@ -55,6 +55,17 @@ impl UnifiedReputationChange {
|
||||
}
|
||||
}
|
||||
|
||||
/// Whether the reputation change is for good behavior.
|
||||
pub const fn is_benefit(&self) -> bool {
|
||||
match self {
|
||||
Self::BenefitMajorFirst(_) |
|
||||
Self::BenefitMajor(_) |
|
||||
Self::BenefitMinorFirst(_) |
|
||||
Self::BenefitMinor(_) => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
/// Convert into a base reputation as used with substrate.
|
||||
pub const fn into_base_rep(self) -> ReputationChange {
|
||||
ReputationChange::new(
|
||||
|
||||
Reference in New Issue
Block a user