Browse Source

Test

etomic
jl777 8 years ago
parent
commit
fa95f8f3d6
  1. 7
      iguana/exchanges/stats.c

7
iguana/exchanges/stats.c

@ -47,7 +47,8 @@ struct komodo_state
};
struct komodo_state KOMODO_STATE;
void komodo_kvupdate(uint8_t *opretbuf,int32_t opretlen,uint64_t value)
void komodo_kvupdate(int32_t height,bits256 txid,int32_t vout,uint8_t *opretbuf,int32_t opretlen,uint64_t value)
{
static bits256 zeroes;
uint32_t flags; bits256 pubkey,refpubkey,sig; int32_t i,refvaluesize,hassig,coresize,haspubkey,height,kvheight; uint16_t keylen,valuesize,newflag = 0; uint8_t *key,*valueptr,keyvalue[10000];
@ -93,7 +94,7 @@ void komodo_kvupdate(uint8_t *opretbuf,int32_t opretlen,uint64_t value)
printf(" -> ");
for (i=0; i<valuesize; i++)
putchar((char)valueptr[i]);
printf(" [%d]\n",valuesize);
char str[65]; printf(" [%d] %s/v%d ht.%d\n",valuesize,bits256_str(str,txid),vout,height);
}
}
@ -103,7 +104,7 @@ void komodo_eventadd_opreturn(struct komodo_state *sp,char *symbol,int32_t heigh
{
if ( opretbuf[0] == 'K' && opretlen != 40 )
{
komodo_kvupdate(opretbuf,opretlen,value);
komodo_kvupdate(height,txid,vout,opretbuf,opretlen,value);
}
}
}

Loading…
Cancel
Save