Skip to content
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

TransactionView: AddressTableLookupMeta #2479

Merged
merged 7 commits into from
Aug 12, 2024

Conversation

apfitzge
Copy link

@apfitzge apfitzge commented Aug 7, 2024

Problem

Summary of Changes

  • Parse MessageAddressTableLookups

Fixes #

@apfitzge apfitzge self-assigned this Aug 7, 2024
@apfitzge apfitzge mentioned this pull request Aug 7, 2024
14 tasks
@apfitzge apfitzge force-pushed the account_lookup_meta branch from 0f03a6c to 13c2c66 Compare August 7, 2024 21:03
@apfitzge apfitzge marked this pull request as ready for review August 7, 2024 23:29
transaction-view/src/address_table_lookup_meta.rs Outdated Show resolved Hide resolved
transaction-view/src/address_table_lookup_meta.rs Outdated Show resolved Hide resolved
const MAX_ATLS_PER_PACKET: usize = PACKET_DATA_SIZE / MIN_SIZED_ATL;
// Maximum number of ATLs should be represented by a single byte,
// thus the MSB should not be set.
const _: () = assert!(MAX_ATLS_PER_PACKET & 0b1000_0000 == 0);
Copy link

@LucasSte LucasSte Aug 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot about this for your other PRs, but Rust has const_assert_eq and const_assert (already available in our monorepo) that check constraints during compile time. Perhaps you can use them here (and in all the other cases - feel free to do that in another PR if you like my idea).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't looked at the crate that provides those, but have been trying to keep dependencies to minimum.

Doesn't seem necessary except for slightly nicer syntax, but I don't feel the syntax here is that bad honestly. Maybe you/others feel differently?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The nicer syntax is my preference, but this is also a nitpick. I'll leave it up to you. Perhaps, just ask a second opinion from the other reviewers.

transaction-view/src/address_table_lookup_meta.rs Outdated Show resolved Hide resolved
@apfitzge apfitzge force-pushed the account_lookup_meta branch from 71a583c to f34ea5f Compare August 8, 2024 19:23
@apfitzge apfitzge requested a review from LucasSte August 9, 2024 15:01
@apfitzge apfitzge force-pushed the account_lookup_meta branch from e634d81 to 67d1a80 Compare August 9, 2024 20:26
@apfitzge
Copy link
Author

apfitzge commented Aug 9, 2024

rebased sinced CI was skipping and i couldn't figure out how to get it to re-run jobs...

@tao-stones
Copy link

rebased sinced CI was skipping and i couldn't figure out how to get it to re-run jobs...

Sometime I need to re-login to buildkite to make the rerun button available. Perhaps you were in similar situation

@apfitzge
Copy link
Author

Sometime I need to re-login to buildkite to make the rerun button available. Perhaps you were in similar situation

Ah no, it was the github-side CI tasks. Usually there's a re-run button, but there wasn't 🤷‍♂️

@apfitzge apfitzge merged commit e8ddd9c into anza-xyz:master Aug 12, 2024
41 checks passed
@apfitzge apfitzge deleted the account_lookup_meta branch August 12, 2024 14:56
ray-kast pushed a commit to abklabs/agave that referenced this pull request Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants