test
This commit is contained in:
@@ -48,6 +48,9 @@ void komodo_gateway_voutupdate(char *symbol,int32_t isspecial,int32_t height,int
|
|||||||
{
|
{
|
||||||
int32_t i,opretlen,offset = 0; uint256 zero; const char *typestr;
|
int32_t i,opretlen,offset = 0; uint256 zero; const char *typestr;
|
||||||
typestr = "unknown";
|
typestr = "unknown";
|
||||||
|
for (i=0; i<len; i++)
|
||||||
|
printf("%02x",script[i]);
|
||||||
|
printf(" <- %s VOUTUPDATE.%d txi.%d vout.%d %.8f scriptlen.%d OP_RETURN.%d (%s)\n",symbol,height,txi,vout,dstr(value),len,script[0] == 0x6a,typestr);
|
||||||
if ( script[offset++] == 0x6a )
|
if ( script[offset++] == 0x6a )
|
||||||
{
|
{
|
||||||
offset += komodo_scriptitemlen(&opretlen,&script[offset]);
|
offset += komodo_scriptitemlen(&opretlen,&script[offset]);
|
||||||
@@ -62,9 +65,6 @@ void komodo_gateway_voutupdate(char *symbol,int32_t isspecial,int32_t height,int
|
|||||||
else if ( isspecial != 0 )
|
else if ( isspecial != 0 )
|
||||||
{
|
{
|
||||||
komodo_stateupdate(0,0,0,0,zero,0,0,0,0,0,value,&script[offset],opretlen);
|
komodo_stateupdate(0,0,0,0,zero,0,0,0,0,0,value,&script[offset],opretlen);
|
||||||
for (i=0; i<len; i++)
|
|
||||||
printf("%02x",script[i]);
|
|
||||||
printf(" <- %s VOUTUPDATE.%d txi.%d vout.%d %.8f scriptlen.%d OP_RETURN.%d (%s)\n",symbol,height,txi,vout,dstr(value),len,script[0] == 0x6a,typestr);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( numvouts > 13 )
|
else if ( numvouts > 13 )
|
||||||
|
|||||||
Reference in New Issue
Block a user