-
Notifications
You must be signed in to change notification settings - Fork 205
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
[sovereign] Index reward txs in outport block #6638
[sovereign] Index reward txs in outport block #6638
Conversation
@@ -2116,6 +2116,9 @@ func checkProcessComponentsArgs(args ProcessComponentsFactoryArgs) error { | |||
if check.IfNil(args.RunTypeComponents.ExportHandlerFactoryCreator()) { | |||
return fmt.Errorf("%s: %w", baseErrMessage, errorsMx.ErrNilExportHandlerFactoryCreator) | |||
} | |||
if check.IfNil(args.RunTypeComponents.OutportDataProviderFactory()) { | |||
return fmt.Errorf("%s: %w", baseErrMessage, errorsMx.ErrNilOutportDataProviderFactory) | |||
} | |||
|
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.
Missing nil check for APIRewardsTxHandler
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.
Because it's not being used anywhere here.
It is used and checked in CreateApiResolver
pcf, err := processComp.NewProcessComponentsFactory(args) | ||
require.True(t, errors.Is(err, errorsMx.ErrNilOutportDataProviderFactory)) | ||
require.Nil(t, pcf) | ||
}) |
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.
missing nil test for APIRewardsTxHandler
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.
No need, see the comment above
Reasoning behind the pull request
Proposed changes
APIRewardsTxHandler
interface to return different results(normal vs sovereign run type) for reward txs when calling api routetransaction/:hash
OutportDataProviderFactory
(normal vs sovereign run type)sovereignChainBlock
processingTesting procedure
Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
feat
branch created?feat
branch merging, do all satellite projects have a proper tag insidego.mod
?