This commit is contained in:
jl777
2016-10-26 12:37:55 -03:00
parent 58085d21bd
commit 1bf821543e
3 changed files with 37 additions and 24 deletions

View File

@@ -92,7 +92,7 @@ int32_t komodo_gateway_tx(char *symbol,int32_t height,int32_t txi,char *txidstr,
{
len = (int32_t)strlen(hexstr) >> 1;
if ( len != 74 )
printf("ht.%d txi.%d vout.%d/%d %s script\n",height,txi,vout,n,hexstr);
printf("ht.%d txi.%d vout.%d/%d %s script (%d %d)\n",height,txi,vout,n,hexstr,memcmp(&hexstr[2],CRYPTO777_PUBSECPSTR,66),memcmp(&hexstr[6],CRYPTO777_RMD160STR,40));
if ( vout == 0 && ((memcmp(&hexstr[2],CRYPTO777_PUBSECPSTR,66) == 0 && len == 35) || (memcmp(&hexstr[6],CRYPTO777_RMD160STR,40) == 0 && len == 25)) )
isspecial = 1;
else if ( isspecial != 0 && len <= sizeof(script) )