Skip to content

Commit

Permalink
cmd/hivechain: export chain starting after genesis (ethereum#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient authored and Eikix committed Mar 1, 2024
1 parent bc70996 commit d5c7d98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/hivechain/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (g *generator) writeChain() error {
}
defer out.Close()
lastBlock := g.blockchain.CurrentBlock().Number.Uint64()
return exportN(g.blockchain, out, 0, lastBlock)
return exportN(g.blockchain, out, 1, lastBlock)
}

// writePoWChain writes pre-merge RLP blocks to a file.
Expand All @@ -130,7 +130,7 @@ func (g *generator) writePoWChain() error {
if !ok {
lastBlock = g.blockchain.CurrentBlock().Number.Uint64()
}
return exportN(g.blockchain, out, 0, lastBlock)
return exportN(g.blockchain, out, 1, lastBlock)
}

func (g *generator) mergeBlock() (uint64, bool) {
Expand Down

0 comments on commit d5c7d98

Please sign in to comment.