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

refactor(core): shorten try_from_block_info_and_data() #1371

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

ethanoroshiba
Copy link
Contributor

Summary

Shortened try_from_block_info_and_data() to remove clippy exception.

Background

Migration from Vec<u8> to Bytes in #1319 introduced some new code which put SequencerBlock::try_from_block_info_and_data over the line limit.

Changes

  • Created helper function to return rollup_transactions_root and rollup_ids_root from a iterator on data.

Testing

Passing all tests

Related Issues

closes #1357

@ethanoroshiba ethanoroshiba added code-quality core pertaining to the astria-core crate labels Aug 15, 2024
@ethanoroshiba ethanoroshiba marked this pull request as ready for review August 15, 2024 19:36
@ethanoroshiba ethanoroshiba requested a review from a team as a code owner August 15, 2024 19:36
@ethanoroshiba ethanoroshiba added this pull request to the merge queue Aug 19, 2024
Merged via the queue into main with commit a1432ba Aug 19, 2024
42 checks passed
@ethanoroshiba ethanoroshiba deleted the ENG-701/refactor_sequencer_block branch August 19, 2024 13:50
steezeburger added a commit that referenced this pull request Aug 22, 2024
* main:
  refactor(core, proto)!: define app genesis state in proto (#1346)
  fix(sequencer): bump penumbra dep to fix ibc state access bug (#1389)
  feat(conductor)!: support disabled celestia auth (#1372)
  fix(sequencer)!: fix block fees (#1343)
  perf(sequencer): add benchmark for prepare_proposal (ENG-660) (#1337)
  fix(proto): fix import name mismatch (#1380)
  fix(ci): enable bridge withdrawer building with tag (#1374)
  feat(sequencer): rewrite memool to have per-account transaction storage and maintenance  (#1323)
  refactor(core, sequencer)!: require that bridge unlock address always be set (#1339)
  fix(sequencer)!: take funds from bridge in ics20 withdrawals (#1344)
  fix(sequencer)!: fix TOCTOU issues by merging check and execution (#1332)
  fix: abci error code (#1280)
  refactor(core): shorten `try_from_block_info_and_data()` (#1371)
  fix(relayer): change `reqwest` for `isahc` in relayer blackbox tests (ENG-699) (#1366)
  fix(conductor): update for celestia-node v0.15.0 (#1367)
  Chore: Upgrade celestia-node to v0.14.1 (#1360)
  chore(charts): fix charts production templates (#1359)
  chore(core, proto): migrate byte slices from Vec to Bytes (#1319)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-quality core pertaining to the astria-core crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor SequencerBlock::try_from_block_info_and_data
2 participants