Test
This commit is contained in:
@@ -1631,7 +1631,9 @@ void komodo_cbopretupdate()
|
|||||||
if ( Mineropret.size() != sizeof(pricebits) )
|
if ( Mineropret.size() != sizeof(pricebits) )
|
||||||
Mineropret.resize(sizeof(pricebits));
|
Mineropret.resize(sizeof(pricebits));
|
||||||
memcpy(&Mineropret[0],pricebits,sizeof(pricebits));
|
memcpy(&Mineropret[0],pricebits,sizeof(pricebits));
|
||||||
fprintf(stderr,"set Mineropret[%d]\n",(int32_t)Mineropret.size());
|
int32_t i; for (i=0; i<Mineropret.size(); i++)
|
||||||
|
fprintf(stderr,"%02x",Mineropret[i]);
|
||||||
|
fprintf(stderr," <- set Mineropret[%d]\n",(int32_t)Mineropret.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1664,6 +1664,7 @@ uint64_t komodo_ac_block_subsidy(int nHeight)
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern int64_t MAX_MONEY;
|
extern int64_t MAX_MONEY;
|
||||||
|
void komodo_cbopretupdate();
|
||||||
|
|
||||||
void komodo_args(char *argv0)
|
void komodo_args(char *argv0)
|
||||||
{
|
{
|
||||||
@@ -2061,6 +2062,7 @@ void komodo_args(char *argv0)
|
|||||||
if ( ASSETCHAINS_CBOPRET != 0 )
|
if ( ASSETCHAINS_CBOPRET != 0 )
|
||||||
{
|
{
|
||||||
extralen += iguana_rwnum(1,&extraptr[extralen],sizeof(ASSETCHAINS_CBOPRET),(void *)&ASSETCHAINS_CBOPRET);
|
extralen += iguana_rwnum(1,&extraptr[extralen],sizeof(ASSETCHAINS_CBOPRET),(void *)&ASSETCHAINS_CBOPRET);
|
||||||
|
komodo_cbopretupdate();
|
||||||
fprintf(stderr,"This blockchain uses data produced from CoinDesk Bitcoin Price Index\n");
|
fprintf(stderr,"This blockchain uses data produced from CoinDesk Bitcoin Price Index\n");
|
||||||
}
|
}
|
||||||
if ( Mineropret.size() != 0 )
|
if ( Mineropret.size() != 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user