add note about P2WPKH in P2WSH as a consensus fail
This commit is contained in:
parent
31ab9bfc03
commit
ca4c9ca64c
1 changed files with 3 additions and 0 deletions
|
@ -54,6 +54,9 @@ function buildAndSign (depends, prevOutput, redeemScript, witnessScript, done) {
|
||||||
buildAndSign(depends, p2sh.output, p2sh.redeem.output, null, 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) => {
|
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 })
|
const p2wsh = bitcoin.payments.p2wsh({ redeem: { output }, network: NETWORK })
|
||||||
buildAndSign(depends, p2wsh.output, null, p2wsh.redeem.output, done)
|
buildAndSign(depends, p2wsh.output, null, p2wsh.redeem.output, done)
|
||||||
|
|
Loading…
Reference in a new issue