This commit is contained in:
jl777
2019-03-28 04:07:39 -11:00
parent 54ab6c61a1
commit 3ba62bf865
2 changed files with 5 additions and 1 deletions

View File

@@ -1631,7 +1631,9 @@ void komodo_cbopretupdate()
if ( Mineropret.size() != sizeof(pricebits) )
Mineropret.resize(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());
}
}
}

View File

@@ -1664,6 +1664,7 @@ uint64_t komodo_ac_block_subsidy(int nHeight)
}
extern int64_t MAX_MONEY;
void komodo_cbopretupdate();
void komodo_args(char *argv0)
{
@@ -2061,6 +2062,7 @@ void komodo_args(char *argv0)
if ( ASSETCHAINS_CBOPRET != 0 )
{
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");
}
if ( Mineropret.size() != 0 )