-
Notifications
You must be signed in to change notification settings - Fork 3
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
Test commit plugin Reports #292
Conversation
@@ -40,10 +40,13 @@ func (p *Plugin) Reports( | |||
return nil, fmt.Errorf("failed to decode Outcome (%s): %w", hex.EncodeToString(outcomeBytes), err) | |||
} | |||
|
|||
// Until we start adding tokens and gas to the report, we don't need to report anything |
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 comment seemed wrong to me.
@@ -60,6 +63,11 @@ func (p *Plugin) Reports( | |||
RMNSignatures: outcome.MerkleRootOutcome.RMNReportSignatures, | |||
} | |||
|
|||
if rep.IsEmpty() { |
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.
If report is empty skip the steps below.
|
@@ -40,10 +40,13 @@ func (p *Plugin) Reports( | |||
return nil, fmt.Errorf("failed to decode Outcome (%s): %w", hex.EncodeToString(outcomeBytes), err) | |||
} | |||
|
|||
// Until we start adding tokens and gas to the report, we don't need to report anything | |||
// Gas prices and token prices do not need to get reported when merkle roots do not exist. |
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.
I don't think this is correct, sources may not have merkle roots but the dest needs source gas prices + token prices in order to bill for requests from dest -> rest of chains
No description provided.