-
Notifications
You must be signed in to change notification settings - Fork 57
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
chore(node): refactor pricing metrics #1501
Conversation
/// number of times that got paid | ||
pub received_payment_count: usize, | ||
/// the duration that node keeps connected to the network, measured in hours | ||
/// TODO: take `restart` into accout |
Check notice
Code scanning / devskim
A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
.store_mut() | ||
.contains(&key); | ||
let cost = if record_exists { | ||
NanoTokens::zero() |
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.
Have we not lost the 0 cost if record exists here?
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.
no, will still return Zero cost within the inner calculation.
I see the main aim here is the |
Ok, will update this once PR 1497 merged. |
Description
reviewpad:summary