-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Version transaction message and add new message format #18725
Conversation
4636482
to
00944eb
Compare
Codecov Report
@@ Coverage Diff @@
## master #18725 +/- ##
=========================================
- Coverage 82.9% 82.9% -0.1%
=========================================
Files 450 453 +3
Lines 128342 128686 +344
=========================================
+ Hits 106429 106705 +276
- Misses 21913 21981 +68 |
187eaf7
to
22e23c8
Compare
pub num_readonly_signed_accounts: u8, | ||
pub num_readonly_unsigned_accounts: u8, | ||
#[serde(with = "short_vec")] | ||
pub account_keys: Vec<Pubkey>, |
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.
the duplication here is unfortunate
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.
Agreed, I spent a fair bit of time trying to "peek" at the first element to avoid this but couldn't get to a good solution. I'll add a comment in the Message
struct pointing to this code.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
2e0e1be
to
ed480df
Compare
59b24ac
to
37db41b
Compare
Any other concerns here before merging? I have changes ready that build on this |
@mvines any high level feedback on this? |
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, all I have is a nit about the usage of the term "original"
automerge label removed due to a CI failure |
Fix comment
a433974
to
fa2df7e
Compare
automerge label removed due to a CI failure |
automerge label removed due to a CI failure |
92d0e55
to
5ad1a3d
Compare
automerge label removed due to a CI failure |
Problem
Need a new message format for processing transactions that load accounts from an on-chain address map. Also need a way to differentiate this new message from the legacy transaction message format.
Summary of Changes
VersionedMessage
which has custom serialization to determine which message version to deserialize by inspecting the first byte.v0::Message
which supports address maps and is serialized with version == 0Fixes #