test
This commit is contained in:
@@ -193,10 +193,10 @@ int32_t komodo_issued_opreturn(char *base,uint256 *txids,uint16_t *vouts,int64_t
|
|||||||
incr = 34 + (iskomodo * (2*sizeof(fiatoshis) + 2*sizeof(height) + 20 + 2));
|
incr = 34 + (iskomodo * (2*sizeof(fiatoshis) + 2*sizeof(height) + 20 + 2));
|
||||||
for (i=0; i<4; i++)
|
for (i=0; i<4; i++)
|
||||||
base[i] = opretbuf[opretlen-4+i];
|
base[i] = opretbuf[opretlen-4+i];
|
||||||
//for (i=0; i<opretlen; i++)
|
for (i=0; i<opretlen; i++)
|
||||||
// printf("%02x",opretbuf[i]);
|
printf("%02x",opretbuf[i]);
|
||||||
//printf(" opretlen.%d (%s)\n",opretlen,base);
|
//printf(" opretlen.%d (%s)\n",opretlen,base);
|
||||||
//printf(" opretlen.%d vs %d incr.%d\n",opretlen,(int32_t)(2*sizeof(fiatoshis) + 2*sizeof(height) + 20 + 4),incr);
|
printf(" opretlen.%d vs %d incr.%d (%d)\n",opretlen,(int32_t)(2*sizeof(fiatoshis) + 2*sizeof(height) + 20 + 2),incr,opretlen/incr);
|
||||||
//if ( ASSETCHAINS_SYMBOL[0] == 0 || strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0 )
|
//if ( ASSETCHAINS_SYMBOL[0] == 0 || strncmp(ASSETCHAINS_SYMBOL,base,strlen(base)) == 0 )
|
||||||
{
|
{
|
||||||
type = opretbuf[0];
|
type = opretbuf[0];
|
||||||
@@ -217,7 +217,7 @@ int32_t komodo_issued_opreturn(char *base,uint256 *txids,uint16_t *vouts,int64_t
|
|||||||
otherheights[n] = p.otherheight;
|
otherheights[n] = p.otherheight;
|
||||||
memcpy(&rmd160s[n * 20],p.rmd160,20);
|
memcpy(&rmd160s[n * 20],p.rmd160,20);
|
||||||
baseids[n] = komodo_baseid(p.source);
|
baseids[n] = komodo_baseid(p.source);
|
||||||
if ( 0 )
|
if ( 1 )
|
||||||
{
|
{
|
||||||
char coinaddr[64];
|
char coinaddr[64];
|
||||||
bitcoin_address(coinaddr,60,&rmd160s[n * 20],20);
|
bitcoin_address(coinaddr,60,&rmd160s[n * 20],20);
|
||||||
|
|||||||
Reference in New Issue
Block a user