miner: failsafe for segwit.
This commit is contained in:
parent
6dcfdc02fd
commit
a9a0f638eb
@ -431,6 +431,9 @@ Miner.prototype.build = function build(attempt) {
|
||||
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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user