From 6c97533f51902214786be2b9cd3efd15bacd18d6 Mon Sep 17 00:00:00 2001 From: Potuz Date: Thu, 16 Mar 2023 15:59:22 -0300 Subject: [PATCH 1/2] Invert reorg of late blocks flag --- config/features/config.go | 7 +++---- config/features/flags.go | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/config/features/config.go b/config/features/config.go index 17b9874a0d95..975bbcd661f7 100644 --- a/config/features/config.go +++ b/config/features/config.go @@ -174,10 +174,9 @@ func ConfigureBeaconChain(ctx *cli.Context) error { cfg.DisableGRPCConnectionLogs = true } - cfg.DisableReorgLateBlocks = true - if ctx.Bool(enableReorgLateBlocks.Name) { - logEnabled(enableReorgLateBlocks) - cfg.DisableReorgLateBlocks = false + if ctx.Bool(disableReorgLateBlocks.Name) { + logEnabled(disableReorgLateBlocks) + cfg.DisableReorgLateBlocks = true } if ctx.Bool(disableBroadcastSlashingFlag.Name) { logDisabled(disableBroadcastSlashingFlag) diff --git a/config/features/flags.go b/config/features/flags.go index b9f2c6aed9dc..78d4784e4f4d 100644 --- a/config/features/flags.go +++ b/config/features/flags.go @@ -41,9 +41,9 @@ var ( Name: "disable-grpc-connection-logging", Usage: "Disables displaying logs for newly connected grpc clients", } - enableReorgLateBlocks = &cli.BoolFlag{ - Name: "enable-reorg-late-blocks", - Usage: "Enables reorgs of late blocks", + disableReorgLateBlocks = &cli.BoolFlag{ + Name: "disable-reorg-late-blocks", + Usage: "Disables reorgs of late blocks", } writeWalletPasswordOnWebOnboarding = &cli.BoolFlag{ Name: "write-wallet-password-on-web-onboarding", From 6311de797d41110266755055e4f76538ac98aac8 Mon Sep 17 00:00:00 2001 From: Potuz Date: Thu, 16 Mar 2023 16:04:16 -0300 Subject: [PATCH 2/2] add flag to beacon node --- config/features/flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/features/flags.go b/config/features/flags.go index 78d4784e4f4d..02785c35d05a 100644 --- a/config/features/flags.go +++ b/config/features/flags.go @@ -163,7 +163,7 @@ var BeaconChainFlags = append(deprecatedBeaconFlags, append(deprecatedFlags, []c enableHistoricalSpaceRepresentation, disableStakinContractCheck, disableVecHTR, - enableReorgLateBlocks, + disableReorgLateBlocks, disableForkChoiceDoublyLinkedTree, disableGossipBatchAggregation, SaveFullExecutionPayloads,