From f9156df9d47f6c62dea9ddb1274f1ce1d39b19d6 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Mon, 11 Sep 2023 23:51:19 +0200 Subject: [PATCH] fix: ignore lockfiles when loading keys for voluntary exit --- packages/cli/src/cmds/validator/voluntaryExit.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/cli/src/cmds/validator/voluntaryExit.ts b/packages/cli/src/cmds/validator/voluntaryExit.ts index ebc60c16a7fd..2b56751edf41 100644 --- a/packages/cli/src/cmds/validator/voluntaryExit.ts +++ b/packages/cli/src/cmds/validator/voluntaryExit.ts @@ -76,6 +76,9 @@ If no `pubkeys` are provided, it will exit all validators that have been importe // Set exitEpoch to current epoch if unspecified const exitEpoch = args.exitEpoch ?? computeEpochAtSlot(getCurrentSlot(config, genesisTime)); + // Ignore lockfiles to allow exiting while validator client is running + args.force = true; + // Select signers to exit const signers = await getSignersFromArgs(args, network, {logger: console, signal: new AbortController().signal}); if (signers.length === 0) {