From b1e88d368e67925da5f4b955caa6cdeac0a2fd6d Mon Sep 17 00:00:00 2001 From: Artur Reznikov Date: Thu, 26 Sep 2024 19:45:18 -0700 Subject: [PATCH 1/2] fix awm relayer crash for wiz --- pkg/teleporter/relayer.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkg/teleporter/relayer.go b/pkg/teleporter/relayer.go index 6ff0edb77..722808dad 100644 --- a/pkg/teleporter/relayer.go +++ b/pkg/teleporter/relayer.go @@ -29,9 +29,11 @@ import ( ) const ( - localRelayerSetupTime = 2 * time.Second - localRelayerCheckPoolTime = 100 * time.Millisecond - localRelayerCheckTimeout = 3 * time.Second + localRelayerSetupTime = 2 * time.Second + localRelayerCheckPoolTime = 100 * time.Millisecond + localRelayerCheckTimeout = 3 * time.Second + AWMRElayerDBWriteIntervalSeconds = 10 + AWMRelayerSignatureCacheSize = 1024 ) var teleporterRelayerRequiredBalance = big.NewInt(0).Mul(big.NewInt(1e18), big.NewInt(500)) // 500 AVAX @@ -356,11 +358,13 @@ func CreateBaseRelayerConfig( BaseURL: network.Endpoint, QueryParams: map[string]string{}, }, + DBWriteIntervalSeconds: AWMRElayerDBWriteIntervalSeconds, StorageLocation: storageLocation, ProcessMissedBlocks: false, SourceBlockchains: []*config.SourceBlockchain{}, DestinationBlockchains: []*config.DestinationBlockchain{}, MetricsPort: metricsPort, + SignatureCacheSize: AWMRelayerSignatureCacheSize, } return saveRelayerConfig(awmRelayerConfig, relayerConfigPath) } From ee152f754ab1e5959d1b9a4332d216641c332d17 Mon Sep 17 00:00:00 2001 From: Artur Reznikov Date: Thu, 26 Sep 2024 19:54:19 -0700 Subject: [PATCH 2/2] go mod tidy --- go.mod | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index de408ca87..d6a7a6119 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,8 @@ module github.com/ava-labs/avalanche-cli -go 1.21.12 -toolchain go1.22.5 +go 1.22 + +toolchain go1.22.6 require ( github.com/ava-labs/apm v1.0.0