diff --git a/ldb/block.go b/ldb/block.go index 8a5a9523..ab7e500f 100644 --- a/ldb/block.go +++ b/ldb/block.go @@ -253,9 +253,7 @@ func (db *LevelDb) NewestSha() (rsha *btcwire.ShaHash, rblkid int64, err error) defer db.dbLock.Unlock() if db.lastBlkIdx == -1 { - rblkid = db.lastBlkIdx - err = fmt.Errorf("Empty Database") - return + return &btcwire.ShaHash{}, -1, nil } sha := db.lastBlkSha