From e8a656cc95528401994e4fa7473f1cdeb9aa9d0e Mon Sep 17 00:00:00 2001 From: jeevan-sid Date: Wed, 18 Feb 2026 13:45:32 +0530 Subject: [PATCH] add era import in geth --- cmd/geth/chaincmd.go | 4 +--- cmd/geth/main.go | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/geth/chaincmd.go b/cmd/geth/chaincmd.go index 7efbe60680..65399bdacc 100644 --- a/cmd/geth/chaincmd.go +++ b/cmd/geth/chaincmd.go @@ -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. diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 2291e0aafa..26642f9583 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -236,6 +236,7 @@ func init() { exportCommand, importHistoryCommand, exportHistoryCommand, + importEraIndexCommand, importPreimagesCommand, removedbCommand, dumpCommand,