This commit is contained in:
Christopher Jeffrey 2016-05-15 16:14:55 -07:00
parent d91a8b1086
commit 6776c701e3
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 5 additions and 5 deletions

View File

@ -102,9 +102,9 @@ Address.prototype.toString = function toString() {
Address.prototype.inspect = function inspect() {
return '<Address:'
+ ' t=' + this.type
+ ' v=' + this.version
+ ' b58=' + this.toBase58()
+ ' type=' + this.type
+ ' version=' + this.version
+ ' base58=' + this.toBase58()
+ '>';
};

View File

@ -1418,7 +1418,7 @@ TX.prototype.getPriority = function getPriority(height, size) {
var sum, i, input, age, value;
if (this.isCoinbase())
return 0;
return { value: 0, priority: 0 };
if (height == null) {
height = this.height;
@ -1443,8 +1443,8 @@ TX.prototype.getPriority = function getPriority(height, size) {
if (input.coin.height <= height) {
age = height - input.coin.height;
value += input.coin.value;
sum += input.coin.value * age;
value += input.coin.value;
}
}