-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bridge-withdrawer, cli, sequencer-client): migrate from `broadcas…
…t_tx_commit` to `broadcast_tx_sync` (#1376) ## Summary Deleted all usage of `broadcast_tx_commit` and instead implemented `broadcast_tx_sync`. ## Background Previously, we relied on `broadcast_tx_commit` to submit transactions to the sequencer. [CometBFT RPC docs warn against this](https://docs.cometbft.com/main/rpc/#/Tx/broadcast_tx_commit) and instead favor using `broadcast_tx_sync`. ## Changes - Deleted all instances of `broadcast_tx_commit`, replacing with `broadcast_tx_sync`. - Added function `wait_for_tx_inclusion()` to probe the sequencer client for a new transaction of the given hash with backoff. ## Testing - Added unit test to `sequencer-client` to ensure `wait_for_tx_inclusion()` works properly ## Related Issues closes #1283 --------- Co-authored-by: noot <[email protected]>
- Loading branch information
1 parent
665479b
commit 64b9106
Showing
10 changed files
with
197 additions
and
118 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.