Skip to content

Commit

Permalink
Changed the default direction of querying the blocks to descending, u…
Browse files Browse the repository at this point in the history
…ntil a better solution is made
  • Loading branch information
ivoras committed Feb 2, 2019
1 parent 4944d77 commit 0dcb758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cliactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0dcb758

Please sign in to comment.