The bridge-withdrawer currently uses broadcast_tx_commit to submit transactions to the sequencer. We used this instead of broadcast_tx_sync in order to make sure the transaction containing a batch of withdrawals is finalized on the sequencer before the next batch is processed.
The CometBFT RPC docs warn against using broadcast_tx_commit in production.
Instead, we should use broadcast_tx_sync and then check for the transaction finalizing with a backoff before processing the next batch.
The
bridge-withdrawercurrently usesbroadcast_tx_committo submit transactions to the sequencer. We used this instead ofbroadcast_tx_syncin order to make sure the transaction containing a batch of withdrawals is finalized on the sequencer before the next batch is processed.The CometBFT RPC docs warn against using
broadcast_tx_commitin production.Instead, we should use
broadcast_tx_syncand then check for the transaction finalizing with a backoff before processing the next batch.