Skip to content

Commit 4d72472

Browse files
committed
mv waitForTxConfig
1 parent 4a3014b commit 4d72472

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/chainio/avs_writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ func (w *AvsWriter) SendAggregatedResponse(batchIdentifierHash [32]byte, batchMe
104104
waitForTxConfig := retry.DefaultRetryConfig()
105105
waitForTxConfig.MaxInterval = 2 * time.Second
106106
waitForTxConfig.NumRetries = 0
107+
waitForTxConfig.MaxElapsedTime = timeToWaitBeforeBump
107108

108109
respondToTaskV2Func := func() (*types.Receipt, error) {
109110
gasPrice, err := utils.GetGasPriceRetryable(w.Client, w.ClientFallback)
@@ -136,7 +137,6 @@ func (w *AvsWriter) SendAggregatedResponse(batchIdentifierHash [32]byte, batchMe
136137
return nil, err
137138
}
138139

139-
waitForTxConfig.MaxElapsedTime = timeToWaitBeforeBump
140140
receipt, err := utils.WaitForTransactionReceiptRetryable(w.Client, w.ClientFallback, tx.Hash(), waitForTxConfig)
141141
if receipt != nil {
142142
return receipt, nil

0 commit comments

Comments
 (0)