remove comments for pushdata issue.

This commit is contained in:
Christopher Jeffrey 2015-12-17 17:39:08 -08:00
parent f89908bb65
commit aac4911b4e

View File

@ -37,9 +37,6 @@ script.decode = function decode(s) {
var opcode = constants.opcodesByVal[b];
if (opcode === 'pushdata1') {
// NOTE: pushdata1 could be substituted with 0x01-0x4b
// later if less than or equal to 0x4b.
// bad when passed back into encode().
var len = s[i];
i += 1;
opcodes.push(s.slice(i, i + len));
@ -49,8 +46,6 @@ script.decode = function decode(s) {
len: len
});
} else if (opcode === 'pushdata2') {
// NOTE: len could theoretically be less than 0xffff
// here. bad when passed back into encode().
var len = utils.readU16(s, i);
i += 2;
opcodes.push(s.slice(i, i + len));
@ -60,8 +55,6 @@ script.decode = function decode(s) {
len: len
});
} else if (opcode === 'pushdata4') {
// NOTE: len could theoretically be less than 0xffffffff
// here. bad when passed back into encode().
var len = utils.readU32(s, i);
i += 4;
opcodes.push(s.slice(i, i + len));