-
Notifications
You must be signed in to change notification settings - Fork 117
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
Prevent blocks from being skipped by ender #639
Conversation
WalkthroughThe changes primarily focus on the Changes
TipsChat with CodeRabbit Bot (
|
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.
Review Status
Actionable comments generated: 0
Files selected for processing (1)
- indexer/services/ender/src/caches/block-cache.ts (2 hunks)
Additional comments (Suppressed): 2
indexer/services/ender/src/caches/block-cache.ts (2)
54-63: The logging statement added here is a good addition for traceability and debugging. However, the return value of the
shouldSkipBlock
function has been changed fromfalse
totrue
whenisNextBlock(blockHeight)
is true. This is a significant change in the logic of the function. Ensure that this change is intentional and that it doesn't introduce any unexpected behavior in the parts of the codebase that use this function.84-87: The return value of the
shouldSkipBlock
function has been changed fromfalse
totrue
in this block as well. As with the previous comment, ensure that this change is intentional and that it doesn't introduce any unexpected behavior in the parts of the codebase that use this function.
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.
Review Status
Actionable comments generated: 0
Files selected for processing (1)
- indexer/services/ender/tests/caches/block-cache.test.ts (1 hunks)
Additional comments (Suppressed): 1
indexer/services/ender/__tests__/caches/block-cache.test.ts (1)
- 60-63: The expected result for the condition
block.height >= currentBlockHeight + 1 with refresh
has been changed fromtrue
tofalse
. This change aligns the test case with the updated behavior of theshouldSkipBlock
function. Ensure that this change in behavior is intentional and correctly reflects the desired functionality.- [false, 'block.height >= currentBlockHeight + 1 with refresh', '5', true], + [false, 'block.height >= currentBlockHeight + 1 with refresh', '5', false],
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.
Review Status
Actionable comments generated: 0
Files selected for processing (1)
- indexer/services/ender/tests/caches/block-cache.test.ts (1 hunks)
Files skipped from review due to trivial changes (1)
- indexer/services/ender/tests/caches/block-cache.test.ts
Changelist
[Describe or list the changes made in this PR]
Test Plan
[Describe how this PR was tested (if applicable)]
Author/Reviewer Checklist
state-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.