3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-12 02:05:53 +00:00

Fix a minor bug in OP_PUSHDATA2 (not used). Resolves issue 80.

This commit is contained in:
Mike Hearn 2011-09-15 15:02:13 +00:00
parent ea7741d3e0
commit bf7b8f133c

View File

@ -245,6 +245,7 @@ public class Script {
os.write(OP_PUSHDATA2); os.write(OP_PUSHDATA2);
os.write(0xFF & (buf.length)); os.write(0xFF & (buf.length));
os.write(0xFF & (buf.length >> 8)); os.write(0xFF & (buf.length >> 8));
os.write(buf);
} else { } else {
throw new RuntimeException("Unimplemented"); throw new RuntimeException("Unimplemented");
} }