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

feat(auditor): recognize payment forwards with default key #1860

Merged

Conversation

maqi
Copy link
Member

@maqi maqi commented Jun 8, 2024

Description

recognize payment forwards with default key

Related Issue

Fixes #<issue_number> (if applicable).

Type of Change

Please mark the types of changes made in this pull request.

  • New feature (non-breaking change which adds functionality)

Comment on lines 362 to +365
} else {
// check with default key
if let Some(default_user_name_hash) =
spend.reason().get_sender_hash(&DEFAULT_PAYMENT_FORWARD_SK)
Copy link
Member

Choose a reason for hiding this comment

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

We could reduce indentation and remove the return statement below with an else if let

Suggested change
} else {
// check with default key
if let Some(default_user_name_hash) =
spend.reason().get_sender_hash(&DEFAULT_PAYMENT_FORWARD_SK)
// check with default key
} else if let Some(default_user_name_hash) =
spend.reason().get_sender_hash(&DEFAULT_PAYMENT_FORWARD_SK)

And put the unknown participant block in a last else

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 small style suggestion, nothing blocking

@maqi maqi added this pull request to the merge queue Jun 10, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 10, 2024
@maqi maqi added this pull request to the merge queue Jun 10, 2024
Merged via the queue into maidsafe:main with commit 84156b3 Jun 10, 2024
39 checks passed
@maqi maqi deleted the recognize_payment_forwards_with_default_key branch June 10, 2024 20:04
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.

2 participants