Commit 4ab0cedf authored by Taylor Gerring's avatar Taylor Gerring

Export should start with block 0

parent 2729e629
......@@ -341,7 +341,7 @@ func (bc *ChainManager) ResetWithGenesisBlock(gb *types.Block) {
// Export writes the active chain to the given writer.
func (self *ChainManager) Export(w io.Writer) error {
if err := self.ExportN(w, uint64(1), self.currentBlock.NumberU64()); err != nil {
if err := self.ExportN(w, uint64(0), self.currentBlock.NumberU64()); err != nil {
return err
}
return nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment