-
Notifications
You must be signed in to change notification settings - Fork 19
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
make maxRetries func param & try direct submission if delegator sign … #2232
Conversation
WalkthroughWalkthroughThe changes to the Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (7)
- node/pkg/chain/helper/helper.go (2 hunks)
- node/pkg/chain/helper/signer.go (2 hunks)
- node/pkg/chain/tests/chain_test.go (4 hunks)
- node/pkg/por/app.go (2 hunks)
- node/pkg/reporter/reporter.go (2 hunks)
- node/script/test_dal_consumer/main.go (3 hunks)
- node/script/test_submission/main.go (1 hunks)
Additional comments not posted (15)
node/script/test_submission/main.go (3)
13-14
: LGTM!The introduction of the
maxTxSubmissionRetries
constant enhances the configurability of the function.The code changes are approved.
22-22
: LGTM!The function call to
SubmitDelegatedFallbackDirect
correctly includes themaxTxSubmissionRetries
parameter.The code changes are approved.
22-22
: LGTM!The call to
testContractFeeDelegatedCall
correctly includes themaxTxSubmissionRetries
parameter.The code changes are approved.
node/script/test_dal_consumer/main.go (3)
19-20
: LGTM!The introduction of the
maxTxSubmissionRetries
constant enhances the configurability of the function.The code changes are approved.
77-77
: LGTM!The function call to
SubmitDelegatedFallbackDirect
correctly includes themaxTxSubmissionRetries
parameter.The code changes are approved.
90-90
: LGTM!The function call to
SubmitDelegatedFallbackDirect
correctly includes themaxTxSubmissionRetries
parameter.The code changes are approved.
node/pkg/reporter/reporter.go (2)
15-16
: LGTM!The introduction of the
maxTxSubmissionRetries
constant enhances the configurability of the function.The code changes are approved.
140-140
: LGTM!The function call to
SubmitDelegatedFallbackDirect
correctly includes themaxTxSubmissionRetries
parameter.The code changes are approved.
node/pkg/chain/helper/signer.go (1)
240-240
: LGTM!The function correctly passes the new constant
maxTxSubmissionRetries
toSubmitDelegatedFallbackDirect
.The code changes are approved.
node/pkg/por/app.go (1)
214-214
: LGTM!The function correctly passes the new constant
maxTxSubmissionRetries
toSubmitDelegatedFallbackDirect
.The code changes are approved.
node/pkg/chain/helper/helper.go (1)
Line range hint
245-268
: LGTM!The function changes align with the PR objectives. The new parameter
maxRetrial
enhances configurability, and the updated error handling logic improves the efficiency of transaction submission.The code changes are approved.
node/pkg/chain/tests/chain_test.go (4)
28-28
: LGTM!The introduction of the
maxTxSubmissionRetries
constant is consistent with the PR objective to make themaxRetries
parameter configurable.The code changes are approved.
271-271
: LGTM!The function call update to include the
maxTxSubmissionRetries
parameter aligns with the PR objective to enhance the configurability of themaxRetries
parameter.The code changes are approved.
295-295
: LGTM!The function call update to include the
maxTxSubmissionRetries
parameter in the concurrent test ensures consistency in the retry behavior for transaction submissions.The code changes are approved.
774-774
: LGTM!The function call updates to include the
maxTxSubmissionRetries
parameter in the cleanup process ensure consistency in the retry behavior for transaction submissions.The code changes are approved.
Also applies to: 779-779
lgtm!, before merging and deploying this, let's send some klay from delegator to reporter wallet so that it can work in case of delegator failure |
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
Description
SubmitDelegatedFallbackDirect
as func argumentFixes #1906
Type of change
Please delete options that are not relevant.
Checklist before requesting a review
Deployment