@@ -30,11 +30,12 @@ import (
3030)
3131
3232const (
33- localRelayerSetupTime = 2 * time .Second
34- localRelayerCheckPoolTime = 100 * time .Millisecond
35- localRelayerCheckTimeout = 3 * time .Second
36- defaultDBWriteIntervalSeconds = 10
37- defaultSignatureCacheSize = 1024 * 1024
33+ localRelayerSetupTime = 2 * time .Second
34+ localRelayerCheckPoolTime = 100 * time .Millisecond
35+ localRelayerCheckTimeout = 3 * time .Second
36+ defaultDBWriteIntervalSeconds = 10
37+ defaultSignatureCacheSize = 1024 * 1024
38+ defaultInitialConnectionTimeoutSeconds = 60
3839)
3940
4041var relayerRequiredBalance = big .NewInt (0 ).Mul (big .NewInt (1e18 ), big .NewInt (500 )) // 500 AVAX
@@ -408,14 +409,15 @@ func CreateBaseRelayerConfig(
408409 BaseURL : network .Endpoint ,
409410 QueryParams : map [string ]string {},
410411 },
411- StorageLocation : storageLocation ,
412- ProcessMissedBlocks : false ,
413- SourceBlockchains : []* config.SourceBlockchain {},
414- DestinationBlockchains : []* config.DestinationBlockchain {},
415- MetricsPort : metricsPort ,
416- DBWriteIntervalSeconds : defaultDBWriteIntervalSeconds ,
417- SignatureCacheSize : defaultSignatureCacheSize ,
418- AllowPrivateIPs : allowPrivateIPs ,
412+ StorageLocation : storageLocation ,
413+ ProcessMissedBlocks : false ,
414+ SourceBlockchains : []* config.SourceBlockchain {},
415+ DestinationBlockchains : []* config.DestinationBlockchain {},
416+ MetricsPort : metricsPort ,
417+ DBWriteIntervalSeconds : defaultDBWriteIntervalSeconds ,
418+ SignatureCacheSize : defaultSignatureCacheSize ,
419+ AllowPrivateIPs : allowPrivateIPs ,
420+ InitialConnectionTimeoutSeconds : defaultInitialConnectionTimeoutSeconds ,
419421 }
420422 return saveRelayerConfig (awmRelayerConfig , relayerConfigPath )
421423}
0 commit comments