-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reward tracking #1653
Reward tracking #1653
Conversation
sn_client/src/api.rs
Outdated
@@ -105,11 +105,23 @@ | |||
let root_dir = std::env::temp_dir(); | |||
trace!("Starting Kad swarm in client mode..{root_dir:?}."); | |||
|
|||
// TODO: shall client bearing owner's discord user name, to be reflected in the cash_notes? |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
cd567d7
to
b917a15
Compare
#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] | ||
pub struct SpendDagAddress { | ||
address: SpendAddress, | ||
purpose: String, | ||
} | ||
|
||
impl std::fmt::Debug for SpendDagAddress { | ||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> std::fmt::Result { | ||
write!( | ||
f, | ||
"address: {}\npurpose: {}", | ||
&self.address.to_hex()[0..6], | ||
self.purpose | ||
) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] | |
pub struct SpendDagAddress { | |
address: SpendAddress, | |
purpose: String, | |
} | |
impl std::fmt::Debug for SpendDagAddress { | |
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> std::fmt::Result { | |
write!( | |
f, | |
"address: {}\npurpose: {}", | |
&self.address.to_hex()[0..6], | |
self.purpose | |
) | |
} | |
} | |
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] | |
pub struct SpendDagAddress { | |
address: SpendAddress, | |
purpose: String, | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the default Debug doesn't have the line break
, which gives a better output in the diagraph.
hence it has to be individually implemented.
Description
reviewpad:summary