mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
small fix
This commit is contained in:
parent
ab05c071ed
commit
97059271e7
1 changed files with 1 additions and 1 deletions
|
|
@ -561,7 +561,7 @@ func exportHistory(ctx *cli.Context) error {
|
|||
utils.Fatalf("Export error: block number %d larger than head block %d\n", uint64(last), head.Number.Uint64())
|
||||
}
|
||||
|
||||
format := ctx.String(utils.EraFormatFlag.Name)
|
||||
format := ctx.String(utils.EraFormatFlag.Get(ctx))
|
||||
switch format {
|
||||
case "era1", "era":
|
||||
if err := utils.ExportHistory(chain, dir, uint64(first), uint64(last), uint64(era.MaxEra1Size), utils.Era1); err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue