This commit is contained in:
jl777
2016-10-25 10:51:04 -03:00
parent e30a267f36
commit 4aa2c64e7b
3 changed files with 6 additions and 2 deletions

View File

@@ -902,7 +902,7 @@ int32_t komodo_opreturnscript(uint8_t *script,uint8_t type,uint8_t *opret,int32_
script[offset++] = opretlen;
}
} else script[offset++] = opretlen;
script[offset++] = type;
script[offset] = type; // covered by opretlen
memcpy(&script[offset],opret,opretlen);
return(opretlen + offset);
}