Small fixes.

This commit is contained in:
JoelKatz
2012-06-04 00:07:57 -07:00
parent b3f91fc7b2
commit 46f2248ce8
3 changed files with 6 additions and 6 deletions

View File

@@ -49,8 +49,8 @@ uint256 Ledger::getGeneratorIndex(const uint160& uGeneratorID)
uint160 Ledger::getOfferBase(const uint160& currencyIn, const uint160& accountIn,
const uint160& currencyOut, const uint160& accountOut)
{
bool inNative = !!currencyIn;
bool outNative = !!currencyOut;
bool inNative = currencyIn.isZero();
bool outNative = currencyOut.isZero();
if (inNative && outNative)
throw std::runtime_error("native to native offer");