cmd/geth: exit when freezer has legacy receipts (#24943)

In #24028 we flagged a warning when finding legacy receipts in the freezer. This PR nudges users a bit more strongly by preventing geth from starting in this case until receipts have been migrated.

It also adds a flag --ignore-legacy-receipts which when present allows geth to start normally.
This commit is contained in:
Sina Mahmoodi
2022-05-26 09:22:10 +02:00
committed by GitHub
parent d575a2d3bc
commit 0559a9a61e
4 changed files with 9 additions and 2 deletions
+4
View File
@@ -566,6 +566,10 @@ var (
Name: "nocompaction",
Usage: "Disables db compaction after import",
}
IgnoreLegacyReceiptsFlag = cli.BoolFlag{
Name: "ignore-legacy-receipts",
Usage: "Geth will start up even if there are legacy receipts in freezer",
}
// RPC settings
IPCDisabledFlag = cli.BoolFlag{
Name: "ipcdisable",