From ed621aae333ac183acc29c396c708ae57301838a Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Sat, 6 Jun 2015 09:50:23 -0400 Subject: Cleanup --- core/chain_manager.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/chain_manager.go') diff --git a/core/chain_manager.go b/core/chain_manager.go index 1d1b6554e..ae25ff6b1 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -351,13 +351,12 @@ func (self *ChainManager) Export(w io.Writer) error { func (self *ChainManager) ExportN(w io.Writer, first uint64, last uint64) error { self.mu.RLock() defer self.mu.RUnlock() - glog.V(logger.Info).Infof("exporting %v blocks...\n", self.currentBlock.Header().Number) if first > last { return fmt.Errorf("export failed: first (%d) is greater than last (%d)", first, last) } - glog.V(logger.Info).Infof("exporting %d blocks...\n", last-first) + glog.V(logger.Info).Infof("exporting %d blocks...\n", last-first+1) for nr := first; nr <= last; nr++ { block := self.GetBlockByNumber(nr) -- cgit