test
This commit is contained in:
@@ -385,7 +385,7 @@ int32_t komodo_voutupdate(int32_t *isratificationp,int32_t notaryid,uint8_t *scr
|
|||||||
sp->NOTARIZED_DESTTXID = desttxid;
|
sp->NOTARIZED_DESTTXID = desttxid;
|
||||||
komodo_stateupdate(height,0,0,0,zero,0,0,0,0,0,0,0,0,0,0);
|
komodo_stateupdate(height,0,0,0,zero,0,0,0,0,0,0,0,0,0,0);
|
||||||
len += 4;
|
len += 4;
|
||||||
if ( ASSETCHAINS_SYMBOL[0] == 0 )
|
if ( 0 && ASSETCHAINS_SYMBOL[0] == 0 )
|
||||||
printf("%s ht.%d NOTARIZED.%d %s.%s %sTXID.%s (%s) lens.(%d %d)\n",ASSETCHAINS_SYMBOL,height,*notarizedheightp,ASSETCHAINS_SYMBOL[0]==0?"KMD":ASSETCHAINS_SYMBOL,kmdtxid.ToString().c_str(),ASSETCHAINS_SYMBOL[0]==0?"BTC":"KMD",desttxid.ToString().c_str(),(char *)&scriptbuf[len],opretlen,len);
|
printf("%s ht.%d NOTARIZED.%d %s.%s %sTXID.%s (%s) lens.(%d %d)\n",ASSETCHAINS_SYMBOL,height,*notarizedheightp,ASSETCHAINS_SYMBOL[0]==0?"KMD":ASSETCHAINS_SYMBOL,kmdtxid.ToString().c_str(),ASSETCHAINS_SYMBOL[0]==0?"BTC":"KMD",desttxid.ToString().c_str(),(char *)&scriptbuf[len],opretlen,len);
|
||||||
if ( ASSETCHAINS_SYMBOL[0] == 0 )
|
if ( ASSETCHAINS_SYMBOL[0] == 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -533,7 +533,11 @@ int32_t komodo_minerids(uint8_t *minerids,int32_t height)
|
|||||||
{
|
{
|
||||||
int32_t i,n=0;
|
int32_t i,n=0;
|
||||||
for (i=0; i<1000; i++,n++)
|
for (i=0; i<1000; i++,n++)
|
||||||
|
{
|
||||||
|
if ( height-i <= 0 )
|
||||||
|
break;
|
||||||
minerids[i] = komodo_minerid(height - i);
|
minerids[i] = komodo_minerid(height - i);
|
||||||
|
}
|
||||||
return(n);
|
return(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -395,6 +395,9 @@ Value minerids(const Array& params, bool fHelp)
|
|||||||
if ( fHelp || params.size() != 1 )
|
if ( fHelp || params.size() != 1 )
|
||||||
throw runtime_error("minerids needs height\n");
|
throw runtime_error("minerids needs height\n");
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
|
int32_t height = atoi(params[0].get_str().c_str());
|
||||||
|
if ( height < 0 )
|
||||||
|
height = 0;
|
||||||
if ( (n= komodo_minerids(minerids,height)) > 0 && n <= 64 )
|
if ( (n= komodo_minerids(minerids,height)) > 0 && n <= 64 )
|
||||||
{
|
{
|
||||||
memset(tally,0,sizeof(tally));
|
memset(tally,0,sizeof(tally));
|
||||||
|
|||||||
Reference in New Issue
Block a user