add era import in geth

This commit is contained in:
jeevan-sid 2026-02-18 13:45:32 +05:30
parent f4efd4b09d
commit e8a656cc95
2 changed files with 2 additions and 3 deletions

View file

@ -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}),
Description: `
The import-era-index command indexes transactions from era files to enable
transaction lookups by hash
for pruned block ranges. Era files must be present in the specified directory.
transaction lookups by hash 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.
`,
}
@ -673,7 +672,6 @@ func importEraIndex(ctx *cli.Context) error {
fmt.Printf("Era indexing done in %v\n", time.Since(start))
return nil
}
// importPreimages imports preimage data from the specified file.

View file

@ -236,6 +236,7 @@ func init() {
exportCommand,
importHistoryCommand,
exportHistoryCommand,
importEraIndexCommand,
importPreimagesCommand,
removedbCommand,
dumpCommand,