diff --git a/lib/wallet/txdb.js b/lib/wallet/txdb.js index 3e6169b1..9b5f79be 100644 --- a/lib/wallet/txdb.js +++ b/lib/wallet/txdb.js @@ -3164,7 +3164,12 @@ Details.prototype.setOutput = function setOutput(i, path) { */ Details.prototype.getConfirmations = function getConfirmations() { - var depth = this.chainHeight - this.height; + var depth; + + if (this.height === -1) + return 0; + + depth = this.chainHeight - this.height; if (depth < 0) return 0;