test
This commit is contained in:
@@ -209,8 +209,16 @@ int32_t komodo_issued_opreturn(char *base,uint256 *txids,uint16_t *vouts,int64_t
|
|||||||
{
|
{
|
||||||
txids[n] = p.txid;
|
txids[n] = p.txid;
|
||||||
vouts[n] = p.vout;
|
vouts[n] = p.vout;
|
||||||
values[n] = (strcmp("KMD",base) == 0) ? p.komodoshis : p.fiatoshis;
|
if ( iskomodo == 1 )
|
||||||
srcvalues[n] = (strcmp("KMD",base) == 0) ? p.fiatoshis : p.komodoshis;
|
{
|
||||||
|
values[n] = p.komodoshis;
|
||||||
|
srcvalues[n] = p.fiatoshis;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
values[n] = p.fiatoshis;
|
||||||
|
srcvalues[n] = p.komodoshis;
|
||||||
|
}
|
||||||
kmdheights[n] = p.height;
|
kmdheights[n] = p.height;
|
||||||
otherheights[n] = p.otherheight;
|
otherheights[n] = p.otherheight;
|
||||||
memcpy(&rmd160s[n * 20],p.rmd160,20);
|
memcpy(&rmd160s[n * 20],p.rmd160,20);
|
||||||
@@ -912,7 +920,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3
|
|||||||
else if ( opretbuf[0] == 'X' )
|
else if ( opretbuf[0] == 'X' )
|
||||||
{
|
{
|
||||||
tokomodo = 1;
|
tokomodo = 1;
|
||||||
if ( (n= komodo_issued_opreturn(base,txids,vouts,values,srcvalues,kmdheights,otherheights,baseids,rmd160s,opretbuf,opretlen,1)) > 0 )
|
if ( (n= komodo_issued_opreturn(base,txids,vouts,values,srcvalues,kmdheights,otherheights,baseids,rmd160s,opretbuf,opretlen,2)) > 0 )
|
||||||
{
|
{
|
||||||
for (i=0; i<n; i++)
|
for (i=0; i<n; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user