diff --git a/core/constants.go b/core/constants.go index bf830a83..cb016ca7 100644 --- a/core/constants.go +++ b/core/constants.go @@ -17,7 +17,10 @@ const ( // ChainId corresponds to the EUROPA chain var ChainId = big.NewInt(0x79f99296) -const MaxRetries uint = 4 +const ( + MaxRetries uint = 3 + RetryDelayDuration int64 = 1 +) var NilHash = common.Hash{0x00} diff --git a/utils/struct-utils.go b/utils/struct-utils.go index bb0dcdb3..5b25dc2f 100644 --- a/utils/struct-utils.go +++ b/utils/struct-utils.go @@ -145,7 +145,7 @@ func InvokeFunctionWithRetryAttempts(ctx context.Context, interfaceName interfac } return nil } - }, RetryInterface.RetryAttempts(core.MaxRetries)) + }, RetryInterface.RetryAttempts(core.MaxRetries), retry.Delay(time.Second*time.Duration(core.RetryDelayDuration)), retry.DelayType(retry.FixedDelay)) if err != nil { if contextError { // Skip the alternate client switch when the error is context-related