From b502b6ac977a4e13e4255b5b71bdbd3aef608f4b Mon Sep 17 00:00:00 2001 From: jwasinger Date: Mon, 28 Mar 2022 22:40:42 -1000 Subject: [PATCH] cmd/geth: change to non-fatal error message when legacy receipt storage is not implemented (#24603) * cmd/geth: only check for presence of legacy receipts if developer mode is not enabled * cmd/geth: degrade log level * cmd/geth: fix format Co-authored-by: Gary Rong --- cmd/geth/config.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/geth/config.go b/cmd/geth/config.go index 0050a51b8..26eeccb8b 100644 --- a/cmd/geth/config.go +++ b/cmd/geth/config.go @@ -174,9 +174,8 @@ func makeFullNode(ctx *cli.Context) (*node.Node, ethapi.Backend) { } isLegacy, _, err := dbHasLegacyReceipts(eth.ChainDb(), firstIdx) if err != nil { - utils.Fatalf("Failed to check db for legacy receipts: %v", err) - } - if isLegacy { + log.Error("Failed to check db for legacy receipts", "err", err) + } else if isLegacy { log.Warn("Database has receipts with a legacy format. Please run `geth db freezer-migrate`.") } }