From ca4c9ca64cf878fb703a0248e226c0076a06c654 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Mon, 23 Jul 2018 10:37:31 +1000 Subject: [PATCH] add note about P2WPKH in P2WSH as a consensus fail --- test/integration/payments.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/payments.js b/test/integration/payments.js index c996f55..d319f60 100644 --- a/test/integration/payments.js +++ b/test/integration/payments.js @@ -54,6 +54,9 @@ function buildAndSign (depends, prevOutput, redeemScript, witnessScript, done) { buildAndSign(depends, p2sh.output, p2sh.redeem.output, null, done) }) + // NOTE: P2WPKH cannot be wrapped in P2WSH, consensus fail + if (k === 'p2wpkh') return + it('can (as P2WSH(' + k + ')) broadcast as an output, and be spent as an input', (done) => { const p2wsh = bitcoin.payments.p2wsh({ redeem: { output }, network: NETWORK }) buildAndSign(depends, p2wsh.output, null, p2wsh.redeem.output, done)