test
This commit is contained in:
@@ -300,8 +300,8 @@ int32_t komodo_voutupdate(int32_t notaryid,uint8_t *scriptbuf,int32_t scriptlen,
|
||||
komodo_stateupdate(height,0,0,0,zero,0,0,0,0,0,0,0,0);
|
||||
} else printf("reject ht.%d NOTARIZED.%d %s.%s DESTTXID.%s (%s)\n",height,*notarizedheightp,KOMODO_SOURCE,kmdtxid.ToString().c_str(),desttxid.ToString().c_str(),(char *)&scriptbuf[len]);
|
||||
}
|
||||
else if ( i == 0 && scriptbuf[len] == 'P' )
|
||||
komodo_paxpricefeed(height,&scriptbuf[++len],opretlen);
|
||||
else if ( i == 0 && (scriptbuf[len] == 'P' || opretlen == 149) )
|
||||
komodo_paxpricefeed(height,&scriptbuf[len + scriptbuf[len] == 'P'],opretlen);
|
||||
else
|
||||
{
|
||||
komodo_stateupdate(0,0,0,0,zero,0,0,0,0,0,value,&scriptbuf[len],opretlen);
|
||||
|
||||
@@ -52,10 +52,10 @@ void komodo_gateway_voutupdate(char *symbol,int32_t isspecial,int32_t height,int
|
||||
offset += komodo_scriptitemlen(&opretlen,&script[offset]);
|
||||
if ( isspecial != 0 && len >= offset+32*2+4 && strcmp((char *)&script[offset+32*2+4],"KMD") == 0 )
|
||||
typestr = "notarized";
|
||||
else if ( script[offset] == 'P' )
|
||||
else if ( txi == 0 && (scriptbuf[offset] == 'P' || opretlen == 149) )
|
||||
{
|
||||
typestr = "pricefeed";
|
||||
komodo_paxpricefeed(height,&script[++offset],opretlen);
|
||||
komodo_paxpricefeed(height,&scriptbuf[len + scriptbuf[offset] == 'P'],opretlen);
|
||||
printf("height.%d pricefeed len.%d\n",height,opretlen);
|
||||
}
|
||||
else if ( isspecial != 0 )
|
||||
|
||||
Reference in New Issue
Block a user