txdb: fix confirmations.
This commit is contained in:
parent
926d9cb5aa
commit
842ba5f5b6
@ -3164,7 +3164,12 @@ Details.prototype.setOutput = function setOutput(i, path) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
Details.prototype.getConfirmations = function getConfirmations() {
|
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)
|
if (depth < 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user