Fix indent
This commit is contained in:
parent
9a9ab3b883
commit
d7cbbb553b
1 changed files with 23 additions and 23 deletions
|
@ -42,29 +42,29 @@ describe('bitcoinjs-lib (transactions w/ CSV)', function () {
|
||||||
// But after sequence2 time, aQ can sign for the output all by themself.
|
// But after sequence2 time, aQ can sign for the output all by themself.
|
||||||
function complexCsvOutput (aQ, bQ, cQ, dQ, sequence1, sequence2) {
|
function complexCsvOutput (aQ, bQ, cQ, dQ, sequence1, sequence2) {
|
||||||
return bitcoin.script.compile([
|
return bitcoin.script.compile([
|
||||||
bitcoin.opcodes.OP_IF,
|
bitcoin.opcodes.OP_IF,
|
||||||
bitcoin.opcodes.OP_IF,
|
bitcoin.opcodes.OP_IF,
|
||||||
bitcoin.opcodes.OP_2,
|
bitcoin.opcodes.OP_2,
|
||||||
bitcoin.opcodes.OP_ELSE,
|
bitcoin.opcodes.OP_ELSE,
|
||||||
bitcoin.script.number.encode(sequence1),
|
bitcoin.script.number.encode(sequence1),
|
||||||
bitcoin.opcodes.OP_CHECKSEQUENCEVERIFY,
|
bitcoin.opcodes.OP_CHECKSEQUENCEVERIFY,
|
||||||
bitcoin.opcodes.OP_DROP,
|
bitcoin.opcodes.OP_DROP,
|
||||||
aQ.publicKey,
|
aQ.publicKey,
|
||||||
bitcoin.opcodes.OP_CHECKSIGVERIFY,
|
bitcoin.opcodes.OP_CHECKSIGVERIFY,
|
||||||
bitcoin.opcodes.OP_1,
|
bitcoin.opcodes.OP_1,
|
||||||
bitcoin.opcodes.OP_ENDIF,
|
bitcoin.opcodes.OP_ENDIF,
|
||||||
bQ.publicKey,
|
bQ.publicKey,
|
||||||
cQ.publicKey,
|
cQ.publicKey,
|
||||||
dQ.publicKey,
|
dQ.publicKey,
|
||||||
bitcoin.opcodes.OP_3,
|
bitcoin.opcodes.OP_3,
|
||||||
bitcoin.opcodes.OP_CHECKMULTISIG,
|
bitcoin.opcodes.OP_CHECKMULTISIG,
|
||||||
bitcoin.opcodes.OP_ELSE,
|
bitcoin.opcodes.OP_ELSE,
|
||||||
bitcoin.script.number.encode(sequence2),
|
bitcoin.script.number.encode(sequence2),
|
||||||
bitcoin.opcodes.OP_CHECKSEQUENCEVERIFY,
|
bitcoin.opcodes.OP_CHECKSEQUENCEVERIFY,
|
||||||
bitcoin.opcodes.OP_DROP,
|
bitcoin.opcodes.OP_DROP,
|
||||||
aQ.publicKey,
|
aQ.publicKey,
|
||||||
bitcoin.opcodes.OP_CHECKSIG,
|
bitcoin.opcodes.OP_CHECKSIG,
|
||||||
bitcoin.opcodes.OP_ENDIF,
|
bitcoin.opcodes.OP_ENDIF
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue