Fix oracles 'd' and 'D'
This commit is contained in:
@@ -146,7 +146,7 @@ bool Eval::ImportCoin(const std::vector<uint8_t> params,const CTransaction &impo
|
||||
for (int i=0; i<importTx.vout.size(); i++)
|
||||
totalOut += importTx.vout[i].nValue;
|
||||
if (totalOut > burnAmount || totalOut < burnAmount-txfee )
|
||||
return Invalid("payout-too-high");
|
||||
return Invalid("payout-too-high-or-too-low");
|
||||
}
|
||||
// Check burntx shows correct outputs hash
|
||||
if (payoutsHash != SerializeHash(payouts))
|
||||
|
||||
@@ -370,7 +370,7 @@ int32_t oracle_format(uint256 *hashp,int64_t *valp,char *str,uint8_t fmt,uint8_t
|
||||
{
|
||||
for (i=0; i<dlen; i++)
|
||||
sprintf(&str[i<<1],"%02x",data[offset++]);
|
||||
str[i] = 0;
|
||||
str[i<<1] = 0;
|
||||
} else return(-1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user