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