Skip to content

Commit

Permalink
add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
zbconsys committed Oct 31, 2024
1 parent 166ccf5 commit 1b1f84f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,11 @@ History.prototype.getHistoryRequestRange = function()
try {
range = _.range( _.max([ 0, best - MAX_HISTORY ]), best + 1);
} catch (err) {
console.error("history request range error: ", err)
range = [0]
console.error("history request range array: ", err)
console.error("blocks", blocks)
console.error("best", best)

return false
}

var missing = _.difference( range, blocks );
Expand Down

0 comments on commit 1b1f84f

Please sign in to comment.