test
This commit is contained in:
@@ -113,7 +113,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
|
|||||||
{ "notaries", 1 },
|
{ "notaries", 1 },
|
||||||
{ "minerids", 1 },
|
{ "minerids", 1 },
|
||||||
{ "kvsearch", 1 },
|
{ "kvsearch", 1 },
|
||||||
{ "kvupdate", 2 },
|
{ "kvupdate", 3 },
|
||||||
};
|
};
|
||||||
|
|
||||||
class CRPCConvertTable
|
class CRPCConvertTable
|
||||||
|
|||||||
@@ -600,7 +600,8 @@ Value kvupdate(const Array& params, bool fHelp)
|
|||||||
memcpy(&keyvalue[12],key,keylen);
|
memcpy(&keyvalue[12],key,keylen);
|
||||||
if ( value != 0 )
|
if ( value != 0 )
|
||||||
memcpy(&keyvalue[12 + keylen],value,valuesize);
|
memcpy(&keyvalue[12 + keylen],value,valuesize);
|
||||||
opretlen = komodo_opreturnscript(opretbuf,'K',keyvalue,sizeof(flags)+sizeof(height)+sizeof(uint16_t)*2+keylen+valuesize);
|
if ( (opretlen= komodo_opreturnscript(opretbuf,'K',keyvalue,sizeof(flags)+sizeof(height)+sizeof(uint16_t)*2+keylen+valuesize)) == 40 )
|
||||||
|
opretlen++;
|
||||||
//for (i=0; i<opretlen; i++)
|
//for (i=0; i<opretlen; i++)
|
||||||
// printf("%02x",opretbuf[i]);
|
// printf("%02x",opretbuf[i]);
|
||||||
//printf(" opretbuf keylen.%d valuesize.%d height.%d (%02x %02x %02x)\n",*(uint16_t *)&keyvalue[0],*(uint16_t *)&keyvalue[2],*(uint32_t *)&keyvalue[4],keyvalue[8],keyvalue[9],keyvalue[10]);
|
//printf(" opretbuf keylen.%d valuesize.%d height.%d (%02x %02x %02x)\n",*(uint16_t *)&keyvalue[0],*(uint16_t *)&keyvalue[2],*(uint32_t *)&keyvalue[4],keyvalue[8],keyvalue[9],keyvalue[10]);
|
||||||
|
|||||||
Reference in New Issue
Block a user