mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-27 18:29:26 +00:00
add era import in geth
This commit is contained in:
parent
f4efd4b09d
commit
e8a656cc95
2 changed files with 2 additions and 3 deletions
|
|
@ -181,8 +181,7 @@ into Era archives. Eras are typically packaged in steps of 8192 blocks.
|
||||||
Flags: slices.Concat(utils.DatabaseFlags, utils.NetworkFlags, []cli.Flag{utils.EraFormatFlag}),
|
Flags: slices.Concat(utils.DatabaseFlags, utils.NetworkFlags, []cli.Flag{utils.EraFormatFlag}),
|
||||||
Description: `
|
Description: `
|
||||||
The import-era-index command indexes transactions from era files to enable
|
The import-era-index command indexes transactions from era files to enable
|
||||||
transaction lookups by hash
|
transaction lookups by hash for pruned block ranges. Era files must be present in the specified directory.
|
||||||
for pruned block ranges. Era files must be present in the specified directory.
|
|
||||||
The command is idempotent and can be re-run to index newly added era files.
|
The command is idempotent and can be re-run to index newly added era files.
|
||||||
`,
|
`,
|
||||||
}
|
}
|
||||||
|
|
@ -673,7 +672,6 @@ func importEraIndex(ctx *cli.Context) error {
|
||||||
|
|
||||||
fmt.Printf("Era indexing done in %v\n", time.Since(start))
|
fmt.Printf("Era indexing done in %v\n", time.Since(start))
|
||||||
return nil
|
return nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// importPreimages imports preimage data from the specified file.
|
// importPreimages imports preimage data from the specified file.
|
||||||
|
|
|
||||||
|
|
@ -236,6 +236,7 @@ func init() {
|
||||||
exportCommand,
|
exportCommand,
|
||||||
importHistoryCommand,
|
importHistoryCommand,
|
||||||
exportHistoryCommand,
|
exportHistoryCommand,
|
||||||
|
importEraIndexCommand,
|
||||||
importPreimagesCommand,
|
importPreimagesCommand,
|
||||||
removedbCommand,
|
removedbCommand,
|
||||||
dumpCommand,
|
dumpCommand,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue