Skip to content
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

Merged
merged 1 commit into from Mar 27, 2024
Merged

Conversation

maqi
Copy link
Member

@maqi maqi commented Mar 25, 2024

Description

reviewpad:summary

/// 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

Suspicious comment
.store_mut()
.contains(&key);
let cost = if record_exists {
NanoTokens::zero()
Copy link
Contributor

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?

Copy link
Member Author

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.

@joshuef
Copy link
Contributor

joshuef commented Mar 26, 2024

I see the main aim here is the QuoteMetrics and getting that verifiable. I think we should try that atop the separate changes to the pricing mechanics in #1497

@maqi
Copy link
Member Author

maqi commented Mar 26, 2024

I see the main aim here is the QuoteMetrics and getting that verifiable. I think we should try that atop the separate changes to the pricing mechanics in #1497

Ok, will update this once PR 1497 merged.

@maqi maqi enabled auto-merge March 27, 2024 11:05
@maqi maqi added this pull request to the merge queue Mar 27, 2024
Merged via the queue into maidsafe:main with commit 279e8d7 Mar 27, 2024
51 checks passed
@maqi maqi deleted the refactor_quoting branch March 27, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Small Pull request is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants