increased the amount of bytes allowed when using op_return from 40 to 80

This commit is contained in:
OutCast3k
2015-07-27 18:04:41 +00:00
parent cacc30cc95
commit 6f8cd22d5f
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -796,7 +796,7 @@
/* add data to a transaction */
r.adddata = function(data){
var r = false;
if(((data.match(/^[a-f0-9]+$/gi)) && data.length<80) && (data.length%2)==0) {
if(((data.match(/^[a-f0-9]+$/gi)) && data.length<160) && (data.length%2)==0) {
var s = coinjs.script();
s.writeOp(106); // OP_RETURN
s.writeBytes(Crypto.util.hexToBytes(data));