miner: failsafe for segwit.

This commit is contained in:
Christopher Jeffrey 2016-12-14 10:39:56 -08:00
parent 6dcfdc02fd
commit a9a0f638eb
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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;