|
|
@ -51,7 +51,7 @@ struct komodo_state KOMODO_STATE; |
|
|
|
void komodo_kvupdate(int32_t ht,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]; |
|
|
|
uint32_t flags; bits256 pubkey,refpubkey,sig; char decodestr[10000]; int32_t i,refvaluesize,hassig,coresize,haspubkey,height,kvheight; uint16_t keylen,valuesize,newflag = 0; uint8_t *key,*valueptr,keyvalue[10000]; |
|
|
|
iguana_rwnum(0,&opretbuf[1],sizeof(keylen),&keylen); |
|
|
|
iguana_rwnum(0,&opretbuf[3],sizeof(valuesize),&valuesize); |
|
|
|
iguana_rwnum(0,&opretbuf[5],sizeof(height),&height); |
|
|
@ -94,7 +94,8 @@ void komodo_kvupdate(int32_t ht,bits256 txid,int32_t vout,uint8_t *opretbuf,int3 |
|
|
|
printf(" -> "); |
|
|
|
//for (i=0; i<coresize; i++)
|
|
|
|
// putchar((char)valueptr[i]);
|
|
|
|
char str[65]; printf(" (%s) [%d] %s/v%d ht.%d height.%d\n",(char *)valueptr,valuesize,bits256_str(str,txid),vout,ht,height); |
|
|
|
decode_hex(decodestr,coresize,valueptr); |
|
|
|
char str[65]; printf(" (%s) [%d] %s/v%d ht.%d height.%d\n",decodestr,valuesize,bits256_str(str,txid),vout,ht,height); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|