diff --git a/src/komodo.h b/src/komodo.h index c94dc0ece..0a0fa2cd8 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -601,6 +601,11 @@ int32_t komodo_voutupdate(int32_t *isratificationp,int32_t notaryid,uint8_t *scr if ( strcmp(ASSETCHAINS_SYMBOL,(char *)&scriptbuf[len+32*2+4]) == 0 ) matched = 1; } + if ( scriptbuf[len] == 'K' ) + { + fprintf(stderr,"KV OPRET len.%d\n",opretlen); + return(-1); + } offset = 32 * (1 + matched) + 4; nameoffset = (int32_t)strlen((char *)&scriptbuf[len+offset]); nameoffset++; @@ -717,13 +722,13 @@ int32_t komodo_voutupdate(int32_t *isratificationp,int32_t notaryid,uint8_t *scr fwrite(&signedmask,1,sizeof(signedmask),signedfp); fflush(signedfp); } - } - if ( opretlen > len && scriptbuf[len] == 'A' ) - { - for (i=0; i len && scriptbuf[len] == 'A' ) + { + //for (i=0; i 600000 && matched != 0 )