miner: move tx.isFinal.
This commit is contained in:
parent
2e26909e85
commit
6b69e2bfad
@ -420,12 +420,6 @@ Miner.prototype.build = function build(attempt) {
|
||||
if (tx.isCoinbase())
|
||||
throw new Error('Cannot add coinbase to block.');
|
||||
|
||||
if (!tx.isFinal(attempt.height, attempt.locktime))
|
||||
continue;
|
||||
|
||||
if (!attempt.witness && tx.hasWitness())
|
||||
continue;
|
||||
|
||||
for (j = 0; j < tx.inputs.length; j++) {
|
||||
input = tx.inputs[j];
|
||||
prev = input.prevout.hash;
|
||||
@ -454,6 +448,9 @@ Miner.prototype.build = function build(attempt) {
|
||||
weight = attempt.weight;
|
||||
sigops = attempt.sigops;
|
||||
|
||||
if (!tx.isFinal(attempt.height, attempt.locktime))
|
||||
continue;
|
||||
|
||||
if (!attempt.witness && tx.hasWitness())
|
||||
continue;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user