Skip to content

Commit cac5d14

Browse files
authored
Merge pull request #1827 from bitcoinjs/junderw-patch-2
Fix more comments for CLTV integration test
2 parents 485dbe4 + e43ddf4 commit cac5d14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/integration/cltv.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ describe('bitcoinjs-lib (transactions w/ CLTV)', () => {
130130
const unspent = await regtestUtils.faucet(address!, 1e5);
131131
const tx = new bitcoin.Transaction();
132132
tx.locktime = lockTime;
133-
// Note: nSequence MUST be <= 0xfffffffe otherwise LockTime is ignored, and is immediately spendable.
133+
// Note: nSequence MUST be <= 0xfffffffe otherwise OP_CHECKLOCKTIMEVERIFY will fail.
134134
tx.addInput(idToHash(unspent.txId), unspent.vout, 0xfffffffe);
135135
tx.addOutput(toOutputScript(regtestUtils.RANDOM_ADDRESS), 7e4);
136136

@@ -181,7 +181,7 @@ describe('bitcoinjs-lib (transactions w/ CLTV)', () => {
181181
const unspent = await regtestUtils.faucet(address!, 2e5);
182182
const tx = new bitcoin.Transaction();
183183
tx.locktime = lockTime;
184-
// Note: nSequence MUST be <= 0xfffffffe otherwise LockTime is ignored, and is immediately spendable.
184+
// Note: nSequence MUST be <= 0xfffffffe otherwise OP_CHECKLOCKTIMEVERIFY will fail.
185185
tx.addInput(idToHash(unspent.txId), unspent.vout, 0xfffffffe);
186186
tx.addOutput(toOutputScript(regtestUtils.RANDOM_ADDRESS), 8e4);
187187

@@ -229,7 +229,7 @@ describe('bitcoinjs-lib (transactions w/ CLTV)', () => {
229229
const unspent = await regtestUtils.faucet(address!, 2e4);
230230
const tx = new bitcoin.Transaction();
231231
tx.locktime = lockTime;
232-
// Note: nSequence MUST be <= 0xfffffffe otherwise LockTime is ignored, and is immediately spendable.
232+
// Note: nSequence MUST be <= 0xfffffffe otherwise OP_CHECKLOCKTIMEVERIFY will fail.
233233
tx.addInput(idToHash(unspent.txId), unspent.vout, 0xfffffffe);
234234
tx.addOutput(toOutputScript(regtestUtils.RANDOM_ADDRESS), 1e4);
235235

0 commit comments

Comments
 (0)