Skip to content
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

Add greedy flag to the recover command #575

Merged
merged 1 commit into from
Aug 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/commands/operator/recover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ export default class Recover extends OperatorJobAwareCommand {
options: Object.values(OperatorMode),
char: 'm',
}),
greedy: Flags.boolean({
description: 'Enable greedy mode which will retry failed jobs with a higher gas limit in order to execute',
default: false,
}),
'update-db': Flags.boolean({
description: 'Update the DB with the status of the bridge that was being processed',
dependsOn: ['host'],
Expand Down Expand Up @@ -143,6 +147,7 @@ export default class Recover extends OperatorJobAwareCommand {
debug: this.debug,
userWallet,
verbose: false,
greedy: flags.greedy,
})

if (this.apiService !== undefined) {
Expand Down
Loading