junderw
6 years ago
No known key found for this signature in database
GPG Key ID: B256185D3A971908
1 changed files with
3 additions and
3 deletions
-
test/integration/transactions-psbt.js
|
@ -48,7 +48,9 @@ describe('bitcoinjs-lib (transactions with psbt)', () => { |
|
|
// value: 90000,
|
|
|
// value: 90000,
|
|
|
// },
|
|
|
// },
|
|
|
|
|
|
|
|
|
// Not featured here: redeemScript. A Buffer of the redeemScript
|
|
|
// Not featured here:
|
|
|
|
|
|
// redeemScript. A Buffer of the redeemScript for P2SH
|
|
|
|
|
|
// witnessScript. A Buffer of the witnessScript for P2WSH
|
|
|
}); |
|
|
}); |
|
|
psbt.addOutput({ |
|
|
psbt.addOutput({ |
|
|
address: '1KRMKfeZcmosxALVYESdPNez1AP1mEtywp', |
|
|
address: '1KRMKfeZcmosxALVYESdPNez1AP1mEtywp', |
|
@ -149,8 +151,6 @@ describe('bitcoinjs-lib (transactions with psbt)', () => { |
|
|
// This step it new. Since we separate the signing operation and
|
|
|
// This step it new. Since we separate the signing operation and
|
|
|
// the creation of the scriptSig and witness stack, we are able to
|
|
|
// the creation of the scriptSig and witness stack, we are able to
|
|
|
psbt.finalizeAllInputs(); |
|
|
psbt.finalizeAllInputs(); |
|
|
// it returns an array of the success of each input, also a result attribute
|
|
|
|
|
|
// which is true if all array items are true.
|
|
|
|
|
|
|
|
|
|
|
|
// build and broadcast our RegTest network
|
|
|
// build and broadcast our RegTest network
|
|
|
await regtestUtils.broadcast(psbt.extractTransaction().toHex()); |
|
|
await regtestUtils.broadcast(psbt.extractTransaction().toHex()); |
|
|