Skip to content

Commit d5c7d98

Browse files
lightclientEikix
authored andcommitted
cmd/hivechain: export chain starting after genesis (ethereum#912)
1 parent bc70996 commit d5c7d98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/hivechain/output.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func (g *generator) writeChain() error {
115115
}
116116
defer out.Close()
117117
lastBlock := g.blockchain.CurrentBlock().Number.Uint64()
118-
return exportN(g.blockchain, out, 0, lastBlock)
118+
return exportN(g.blockchain, out, 1, lastBlock)
119119
}
120120

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

136136
func (g *generator) mergeBlock() (uint64, bool) {

0 commit comments

Comments
 (0)