miner: minor.
This commit is contained in:
parent
1dd0e366ac
commit
a68ade51bc
@ -438,9 +438,9 @@ Miner.prototype.build = function build(attempt) {
|
|||||||
if (priority) {
|
if (priority) {
|
||||||
if (weight > this.options.priorityWeight
|
if (weight > this.options.priorityWeight
|
||||||
|| item.priority < this.options.priorityThreshold) {
|
|| item.priority < this.options.priorityThreshold) {
|
||||||
|
priority = false;
|
||||||
queue.set(cmpRate);
|
queue.set(cmpRate);
|
||||||
queue.init();
|
queue.init();
|
||||||
priority = false;
|
|
||||||
queue.insert(item);
|
queue.insert(item);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -596,14 +596,14 @@ function BlockEntry(tx) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
BlockEntry.fromTX = function fromTX(tx, view, attempt) {
|
BlockEntry.fromTX = function fromTX(tx, view, attempt) {
|
||||||
var entry = new BlockEntry(tx);
|
var item = new BlockEntry(tx);
|
||||||
entry.fee = tx.getFee(view);
|
item.fee = tx.getFee(view);
|
||||||
entry.rate = tx.getRate(view);
|
item.rate = tx.getRate(view);
|
||||||
entry.priority = tx.getPriority(view, attempt.height);
|
item.priority = tx.getPriority(view, attempt.height);
|
||||||
entry.free = false;
|
item.free = false;
|
||||||
entry.sigops = tx.getSigopsCost(view, attempt.flags);
|
item.sigops = tx.getSigopsCost(view, attempt.flags);
|
||||||
entry.descRate = entry.rate;
|
item.descRate = item.rate;
|
||||||
return entry;
|
return item;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user