This commit is contained in:
JoelKatz
2012-10-27 19:29:39 -07:00
parent e32ca702b4
commit 179b59bf3c

View File

@@ -77,12 +77,11 @@ public:
Ledger::pointer getLedgerByHash(const uint256& hash)
{
if (!hash)
if (hash.isZero())
return mCurrentLedger;
if (mCurrentLedger && (mCurrentLedger->getHash() == hash))
return mCurrentLedger;
if (mFinalizedLedger && (mFinalizedLedger->getHash() == hash))
return mFinalizedLedger;