diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-06-06 22:59:56 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-06-06 22:59:56 +0800 |
commit | 4ab0cedf42abea8becc5177e566c070730f13a07 (patch) | |
tree | 62b552de287793b11fcaecc8cf508db99ed92280 /core | |
parent | 2729e6294a22c5f1adb547078a7391ca0537ccc9 (diff) | |
download | dexon-4ab0cedf42abea8becc5177e566c070730f13a07.tar dexon-4ab0cedf42abea8becc5177e566c070730f13a07.tar.gz dexon-4ab0cedf42abea8becc5177e566c070730f13a07.tar.bz2 dexon-4ab0cedf42abea8becc5177e566c070730f13a07.tar.lz dexon-4ab0cedf42abea8becc5177e566c070730f13a07.tar.xz dexon-4ab0cedf42abea8becc5177e566c070730f13a07.tar.zst dexon-4ab0cedf42abea8becc5177e566c070730f13a07.zip |
Export should start with block 0
Diffstat (limited to 'core')
-rw-r--r-- | core/chain_manager.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index ae25ff6b1..a00fd288d 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -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 |