Skip to content

Commit

Permalink
make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf committed Aug 7, 2024
1 parent 5ff5718 commit aed27a0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions chainio/txmgr/geometric/geometric.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ func (t *GeometricTxManager) processTransaction(ctx context.Context, req *txnReq
}

// ensureAnyTransactionBroadcasted waits until at least one of the bumped transactions are broadcasted to the network.
// this is only needed for the Fireblocks wallet, where some processing is done in their backend before broadcasting to the ethereum network.
// this is only needed for the Fireblocks wallet, where some processing is done in their backend before broadcasting to
// the ethereum network.
func (t *GeometricTxManager) ensureAnyTransactionBroadcasted(ctx context.Context, txs []*transaction) error {
queryTicker := time.NewTicker(t.params.GetTxReceiptTickerDuration)
defer queryTicker.Stop()
Expand All @@ -270,8 +271,9 @@ func (t *GeometricTxManager) ensureAnyTransactionBroadcasted(ctx context.Context
}
}

// ensureAnyTransactionConfirmed waits until at least one of the transactions is confirmed (mined + confirmationBlocks blocks).
// It returns the receipt of the first transaction that is confirmed (only one tx can ever be mined given they all have the same nonce).
// ensureAnyTransactionConfirmed waits until at least one of the transactions is confirmed (mined + confirmationBlocks
// blocks). It returns the receipt of the first transaction that is confirmed (only one tx can ever be mined given they
// all have the same nonce).
func (t *GeometricTxManager) ensureAnyTransactionConfirmed(
ctx context.Context,
txs []*transaction,
Expand Down

0 comments on commit aed27a0

Please sign in to comment.