-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix awm relayer crash for wiz #2191
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,9 +29,11 @@ | |
) | ||
|
||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like capitalization typo here. Also, do these new consts need to be exported? |
||
AWMRelayerSignatureCacheSize = 1024 | ||
) | ||
|
||
var teleporterRelayerRequiredBalance = big.NewInt(0).Mul(big.NewInt(1e18), big.NewInt(500)) // 500 AVAX | ||
|
@@ -356,11 +358,13 @@ | |
BaseURL: network.Endpoint, | ||
QueryParams: map[string]string{}, | ||
}, | ||
DBWriteIntervalSeconds: AWMRElayerDBWriteIntervalSeconds, | ||
Check failure on line 361 in pkg/teleporter/relayer.go GitHub Actions / Golang Unit Tests v1.21.7 (ubuntu-20.04)
Check failure on line 361 in pkg/teleporter/relayer.go GitHub Actions / Lint
Check failure on line 361 in pkg/teleporter/relayer.go GitHub Actions / Lint
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Think we'll need to fix these lint errors here |
||
StorageLocation: storageLocation, | ||
ProcessMissedBlocks: false, | ||
SourceBlockchains: []*config.SourceBlockchain{}, | ||
DestinationBlockchains: []*config.DestinationBlockchain{}, | ||
MetricsPort: metricsPort, | ||
SignatureCacheSize: AWMRelayerSignatureCacheSize, | ||
Check failure on line 367 in pkg/teleporter/relayer.go GitHub Actions / Golang Unit Tests v1.21.7 (ubuntu-20.04)
Check failure on line 367 in pkg/teleporter/relayer.go GitHub Actions / Lint
Check failure on line 367 in pkg/teleporter/relayer.go GitHub Actions / Lint
|
||
} | ||
return saveRelayerConfig(awmRelayerConfig, relayerConfigPath) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if updating the golang version here was intentional or not. It is probably best left for it's own PR in case there is any unexpected behavior from updating.
We should also specify the full patch version as whatever the latest 1.22 release is when we do 👍