makedagCommand¶
| Source (upstream pre-purge) | Current | |
|---|---|---|
| File | cmd/geth/misccmd.go |
misccmd_pow.go |
| Symbol | makedagCommand |
makedagCommand |
| Ref | dde2da0ef~1 |
etc/v1.17.3-full-node |
CLI command definition. Adds --epoch.length flag (default 30000) from core-geth to support ECIP-1099 variable epoch lengths. — see makecacheCommand
3-way merge — purge → getc ← upstream¶
pre-purgecore-geth
↗var (
↗ makecacheCommand = &cli.Command{
Action: makecache,
Name: "makecache",
Usage: "Generate ethash verification cache (for testing)",
ArgsUsage: "<blockNum> <outputDir>",
↗ Flags: []cli.Flag{
utils.EthashEpochLengthFlag,
},
↗ Description: `
The makecache command generates an ethash cache in <outputDir>.
↗This command exists to support the system testing project.
Regular users do not need to execute it.
`,
}
makedagCommand = &cli.Command{
Action: makedag,
Name: "makedag",
Usage: "Generate ethash mining DAG (for testing)",
ArgsUsage: "<blockNum> <outputDir>",
↗ Flags: []cli.Flag{
utils.EthashEpochLengthFlag,
},
↗ Description: `
The makedag command generates an ethash DAG in <outputDir>.
↗This command exists to support the system testing project.
Regular users do not need to execute it.
`,
}
↗)
core-geth validation — +0 -41
| | | |---|---| | File | [`misccmd.go`](https://github.com/etclabscore/core-geth/blob/v1.12.20/cmd/geth/misccmd.go) | | Symbol | `makedagCommand` | | Ref | `v1.12.20` |--- a/core-geth/cmd/geth/misccmd.go
+++ b/etc/cmd/geth/misccmd_pow.go
@@ -1,14 +1,4 @@
var (
- VersionCheckUrlFlag = &cli.StringFlag{
- Name: "check.url",
- Usage: "URL to use when checking vulnerabilities",
- Value: "https://geth.ethereum.org/docs/vulnerabilities/vulnerabilities.json",
- }
- VersionCheckVersionFlag = &cli.StringFlag{
- Name: "check.version",
- Usage: "Version to check",
- Value: version.ClientName(clientIdentifier),
- }
makecacheCommand = &cli.Command{
Action: makecache,
Name: "makecache",
@@ -17,7 +7,6 @@
Flags: []cli.Flag{
utils.EthashEpochLengthFlag,
},
- Category: "MISCELLANEOUS COMMANDS",
Description: `
The makecache command generates an ethash cache in <outputDir>.
@@ -33,7 +22,6 @@
Flags: []cli.Flag{
utils.EthashEpochLengthFlag,
},
- Category: "MISCELLANEOUS COMMANDS",
Description: `
The makedag command generates an ethash DAG in <outputDir>.
@@ -41,33 +29,4 @@
Regular users do not need to execute it.
`,
}
- versionCommand = &cli.Command{
- Action: printVersion,
- Name: "version",
- Usage: "Print version numbers",
- ArgsUsage: " ",
- Description: `
-The output of this command is supposed to be machine-readable.
-`,
- }
- versionCheckCommand = &cli.Command{
- Action: versionCheck,
- Flags: []cli.Flag{
- VersionCheckUrlFlag,
- VersionCheckVersionFlag,
- },
- Name: "version-check",
- Usage: "Checks (online) for known Geth security vulnerabilities",
- ArgsUsage: "<versionstring (optional)>",
- Description: `
-The version-check command fetches vulnerability-information from https://geth.ethereum.org/docs/vulnerabilities/vulnerabilities.json,
-and displays information about any security vulnerabilities that affect the currently executing version.
-`,
- }
- licenseCommand = &cli.Command{
- Action: license,
- Name: "license",
- Usage: "Display license information",
- ArgsUsage: " ",
- }
)