-
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
Add blockHeight to subaccount websocket msg contents #1523
Conversation
WalkthroughThe recent changes focus on incorporating a new Changes
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 Configration 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 (3)
- indexer/services/socks/tests/helpers/from-kafka-helpers.test.ts (1 hunks)
- indexer/services/socks/tests/lib/message-forwarder.test.ts (5 hunks)
- indexer/services/socks/src/helpers/from-kafka-helpers.ts (1 hunks)
Files skipped from review due to trivial changes (1)
- indexer/services/socks/tests/helpers/from-kafka-helpers.test.ts
Additional Context Used
Path-based Instructions (2)
indexer/services/socks/src/helpers/from-kafka-helpers.ts (1)
Pattern
**/**
: Do not include a walkthrough. For all comments on line changes that are longer than 15 lines, add a prefix to the comment of what lines you are commenting on (for example: "The changes from lines 100 to 200...". Add your comment to be on the last 15 lines of the chunk rather than adding your comment to the entire chunk.indexer/services/socks/__tests__/lib/message-forwarder.test.ts (1)
Pattern
**/**
: Do not include a walkthrough. For all comments on line changes that are longer than 15 lines, add a prefix to the comment of what lines you are commenting on (for example: "The changes from lines 100 to 200...". Add your comment to be on the last 15 lines of the chunk rather than adding your comment to the entire chunk.
Additional comments not posted (2)
indexer/services/socks/src/helpers/from-kafka-helpers.ts (1)
42-45
: EnsureblockHeight
is correctly added tocontents
.The addition of
blockHeight
to thecontents
object is correct and ensures that theblockHeight
is included in the forwarded message if it exists in thesubaccountMessage
.indexer/services/socks/__tests__/lib/message-forwarder.test.ts (1)
362-362
: EnsureblockHeight
is correctly included in the expected message comparison.The addition of
blockHeight
to the expected message comparison in thecheckBatchMessage
function is correct and ensures that theblockHeight
is included in the batch message validation.Also applies to: 434-434, 451-451, 564-564, 576-580
Changelist
Add blockHeight to subaccount websocket msg contents
Test Plan
Unit tested.
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.Summary by CodeRabbit
blockHeight
property in message contents, ensuring more accurate data processing.