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

Auditor supplement features #1973

Merged
merged 4 commits into from
Jul 17, 2024
Merged

Conversation

maqi
Copy link
Member

@maqi maqi commented Jul 16, 2024

Description

Replace the PR #1960

Related Issue

Fixes #<issue_number> (if applicable).

Type of Change

sn_auditor/src/dag_db.rs Outdated Show resolved Hide resolved
}
}

if royalties.len() > (spend.spend.spent_tx.outputs.len() - 1) / 2 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if there is no change output because by chance the amount is perfect?
In this case the -1 is unnecessary. Although there is no way to know which of the outputs is the change...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just for alerting suspicious spend.
with the main nano supplier is currently controlled by us, the case of no change is really rare.
so, shall not be a problem here.

Copy link
Member

@grumbach grumbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left small comments, not blocking

@maqi maqi force-pushed the auditor_supplement_features branch from e56a7ca to caed32b Compare July 16, 2024 16:04
@joshuef joshuef added this pull request to the merge queue Jul 17, 2024
Merged via the queue into maidsafe:main with commit 7a16c14 Jul 17, 2024
42 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants