forked from cerc-io/plugeth
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user