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, sequencer)!: require that bridge unlock address always be set #1339

Merged
merged 4 commits into from
Aug 20, 2024

Conversation

SuperFluffy
Copy link
Member

Summary

Requires that astria.protocol.v1alpha1.BridgeUnlockAction.bridge_address is always.

Background

Before this patch, the transaction signer containing the bridge unlock action was used as the bridge address if the bridge address was not set. This means that setting the bridge address to the signer or leaving it unset resultes in the same behavior. This patch makes the bridge address a requirement so that a bridge unlock is easier to understand at a first glance (i.e. without needing to remember implementation or spec details), and because two separate actions should not lead to the same result.

Changes

  • Make astria.protocol.v1alpha1.BridgeUnlockAction.bridge_address a required field.

Testing

Tests have been updated to reflect this change: explicitly setteing the bridge address to the signer makes those tests pass again that relied on the implicit behaviour.

Breaking Changelist

This is a protocl breaking change because newer sequencers will reject bridge unlock actions without a bridge address.

Related Issues

Closes #1338

@github-actions github-actions bot added sequencer pertaining to the astria-sequencer crate proto pertaining to the Astria Protobuf spec labels Aug 2, 2024
@SuperFluffy SuperFluffy marked this pull request as ready for review August 2, 2024 08:36
@SuperFluffy SuperFluffy requested review from a team as code owners August 2, 2024 08:37
@SuperFluffy SuperFluffy requested review from Fraser999 and noot August 2, 2024 08:37
Base automatically changed from gh-1318 to main August 20, 2024 11:42
@SuperFluffy SuperFluffy added this pull request to the merge queue Aug 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 20, 2024
@SuperFluffy SuperFluffy added this pull request to the merge queue Aug 20, 2024
Merged via the queue into main with commit ee31f2d Aug 20, 2024
42 checks passed
@SuperFluffy SuperFluffy deleted the ENG-684 branch August 20, 2024 14:57
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
proto pertaining to the Astria Protobuf spec sequencer pertaining to the astria-sequencer crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants