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

Decode arbitrary VID payloads #1231

Merged
merged 4 commits into from
Mar 19, 2024
Merged

Decode arbitrary VID payloads #1231

merged 4 commits into from
Mar 19, 2024

Conversation

akonring
Copy link
Contributor

closes: #785

Make tx-iterator more concise and refactor `QueryablePayload::len` to use table abstraction
- re-introduce `get_payload_range` inside `TxTable` for safe and easy access to the transaction payload in `Payload::parse_ns_payload` and `QueryablePayload::transaction`.
- let `NamespaceTable::get_payload_range` conveniently return the ns_id with the range
@akonring akonring marked this pull request as ready for review March 15, 2024 15:30
Copy link
Contributor

@ggutoski ggutoski left a comment

Choose a reason for hiding this comment

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

Great progress. I think we can merge as soon as we update to latest main.

TODO in future PRs:

  • more tidying. (Definitely need to remove all the TxTableEntryWord type params.)
  • improve tests. eg. merge arbitrary_payloads with malformed_payloads, build better infra.

sequencer/src/block/tables.rs Show resolved Hide resolved
@akonring
Copy link
Contributor Author

Thanks for looking at this big PR. It is a joy to help getting some of the TODOs resolved in this part of the code 💯.

After our discussion on testing for duplicate namespace ids, I've created an issue for this specific task here.

@akonring akonring merged commit 3d4b89b into main Mar 19, 2024
14 checks passed
@akonring akonring deleted the ak/785 branch March 19, 2024 11:13
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.

[cappuccino milestone] Decode arbitrary block payload with multiple namespaces
2 participants