syntax
This commit is contained in:
@@ -1554,9 +1554,7 @@ CScript komodo_mineropret(int32_t nHeight)
|
||||
{
|
||||
CScript opret;
|
||||
if ( Mineropret.size() != 0 )
|
||||
{
|
||||
opret << OP_RETURN << Mineropret);
|
||||
}
|
||||
return(opret << OP_RETURN << Mineropret);
|
||||
return(opret);
|
||||
}
|
||||
|
||||
@@ -1569,7 +1567,7 @@ int32_t komodo_opretvalidate(int32_t nHeight,CScript scriptPubKey)
|
||||
if ( vopret.size() == sizeof(pricebits) )
|
||||
{
|
||||
memcpy(pricebits,&Mineropret[0],sizeof(pricebits));
|
||||
fprintf(stderr,"ht.%d: t%u %.4f USD, %.4f GBP, %.4f EUR\n",nHeight,pricebits[0],(double)pricebits[1]/10000,(double)pricebits[2]/10000,(double)pricebits[3]/10000)
|
||||
fprintf(stderr,"ht.%d: t%u %.4f USD, %.4f GBP, %.4f EUR\n",nHeight,pricebits[0],(double)pricebits[1]/10000,(double)pricebits[2]/10000,(double)pricebits[3]/10000);
|
||||
return(0);
|
||||
}
|
||||
return(-1);
|
||||
|
||||
Reference in New Issue
Block a user