node(svm-watcher): Add type to validate message account data#4657
Open
johnsaigle wants to merge 5 commits intowormhole-foundation:mainfrom
Open
node(svm-watcher): Add type to validate message account data#4657johnsaigle wants to merge 5 commits intowormhole-foundation:mainfrom
johnsaigle wants to merge 5 commits intowormhole-foundation:mainfrom
Conversation
282953b to
22a66cb
Compare
djb15
reviewed
Feb 6, 2026
601307f to
1533f7a
Compare
djb15
previously approved these changes
Feb 13, 2026
bba20de to
30e833d
Compare
mdulin2
previously approved these changes
Feb 17, 2026
4889df9 to
be6b5d6
Compare
djb15
previously approved these changes
Feb 20, 2026
pleasew8t
reviewed
Feb 24, 2026
pleasew8t
previously approved these changes
Feb 24, 2026
be6b5d6 to
0665fd5
Compare
0665fd5 to
d3fa447
Compare
djb15
previously approved these changes
Mar 10, 2026
d3fa447 to
074ff88
Compare
074ff88 to
41fae94
Compare
41fae94 to
2b6d257
Compare
djb15
previously approved these changes
Mar 24, 2026
2b6d257 to
48a2470
Compare
48a2470 to
191aa10
Compare
Contributor
Author
|
@djb15 @pleasew8t @mdulin2 could you please re-review? the only changes since your previous approvals are the ones in the unit test file |
djb15
reviewed
Apr 15, 2026
20d29f4 to
477b0d6
Compare
djb15
previously approved these changes
Apr 17, 2026
- Add new MessageAcccountData type to validate message account data is the right size and has a valid prefix. - Modify relevant function signatures to accept the new type instead of []byte. Add unit tests for parsing More comments revert gap bytes changes decouple prefix length from min account data; test on specific err strings add test for short prefix Add check in the programSubscribe path embed slice access in else Add security comment for parsing account data; fix unit test Use copy for new struct; log on empty account data Add String and Bytes to clarify access pattern for data Add String and Bytes to clarify access pattern for data refactor to use struct,err return instead of nil-able pointer return errors from constructor fix wrong err return; avoid double copy fix regression in err handling; add test for constructor Add mutability test; explain length check; fix logs cleanup after rebase make comment more precise
477b0d6 to
4cc16bd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.