From 0dcb758beafdfbf6cf8338a5d46be9e57c843cc1 Mon Sep 17 00:00:00 2001 From: ivoras Date: Sat, 2 Feb 2019 11:50:24 +0100 Subject: [PATCH] Changed the default direction of querying the blocks to descending, until a better solution is made --- cliactions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cliactions.go b/cliactions.go index 3fa1bca..3881027 100644 --- a/cliactions.go +++ b/cliactions.go @@ -141,7 +141,7 @@ func actionSignImportBlock(fn string) { func actionQuery(q string) { log.Println("Running query:", q) errCount := 0 - for h := 1; h <= dbGetBlockchainHeight(); h++ { + for h := dbGetBlockchainHeight(); h > 0; h-- { fn := blockchainGetFilename(h) db, err := dbOpen(fn, true) if err != nil {