minor.
This commit is contained in:
parent
d91a8b1086
commit
6776c701e3
@ -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()
|
||||
+ '>';
|
||||
};
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user