Fix indent

This commit is contained in:
junderw 2018-08-22 14:41:41 +09:00
parent 9a9ab3b883
commit d7cbbb553b
No known key found for this signature in database
GPG key ID: B256185D3A971908

View file

@ -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
]) ])
} }