-
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
Auditor supplement features #1973
Conversation
} | ||
} | ||
|
||
if royalties.len() > (spend.spend.spent_tx.outputs.len() - 1) / 2 { |
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.
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...
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.
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.
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.
LGTM, left small comments, not blocking
e56a7ca
to
caed32b
Compare
Description
Replace the PR #1960
Related Issue
Fixes #<issue_number> (if applicable).
Type of Change