Fix oracles 'd' and 'D'

This commit is contained in:
jl777
2019-01-02 04:02:49 -11:00
parent ab5f7437a1
commit 398cc66405
2 changed files with 2 additions and 2 deletions

View File

@@ -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))

View File

@@ -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);
}
}