minor.
This commit is contained in:
parent
d91a8b1086
commit
6776c701e3
@ -102,9 +102,9 @@ Address.prototype.toString = function toString() {
|
|||||||
|
|
||||||
Address.prototype.inspect = function inspect() {
|
Address.prototype.inspect = function inspect() {
|
||||||
return '<Address:'
|
return '<Address:'
|
||||||
+ ' t=' + this.type
|
+ ' type=' + this.type
|
||||||
+ ' v=' + this.version
|
+ ' version=' + this.version
|
||||||
+ ' b58=' + this.toBase58()
|
+ ' base58=' + this.toBase58()
|
||||||
+ '>';
|
+ '>';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1418,7 +1418,7 @@ TX.prototype.getPriority = function getPriority(height, size) {
|
|||||||
var sum, i, input, age, value;
|
var sum, i, input, age, value;
|
||||||
|
|
||||||
if (this.isCoinbase())
|
if (this.isCoinbase())
|
||||||
return 0;
|
return { value: 0, priority: 0 };
|
||||||
|
|
||||||
if (height == null) {
|
if (height == null) {
|
||||||
height = this.height;
|
height = this.height;
|
||||||
@ -1443,8 +1443,8 @@ TX.prototype.getPriority = function getPriority(height, size) {
|
|||||||
|
|
||||||
if (input.coin.height <= height) {
|
if (input.coin.height <= height) {
|
||||||
age = height - input.coin.height;
|
age = height - input.coin.height;
|
||||||
value += input.coin.value;
|
|
||||||
sum += input.coin.value * age;
|
sum += input.coin.value * age;
|
||||||
|
value += input.coin.value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user