diff --git a/src/cpp/ripple/LedgerConsensus.cpp b/src/cpp/ripple/LedgerConsensus.cpp index 3ed93cbf9b..9e1c2d00df 100644 --- a/src/cpp/ripple/LedgerConsensus.cpp +++ b/src/cpp/ripple/LedgerConsensus.cpp @@ -747,7 +747,7 @@ SHAMap::pointer LedgerConsensus::getTransactionTree(const uint256& hash, bool do TransactionAcquire::pointer& acquiring = mAcquiring[hash]; if (!acquiring) { - if (!hash) + if (hash.isZero()) { SHAMap::pointer empty = boost::make_shared(smtTRANSACTION); mapComplete(hash, empty, false); @@ -1329,10 +1329,13 @@ Json::Value LedgerConsensus::getJson(bool full) if (!mAcquired.empty()) { // acquired typedef boost::unordered_map::value_type ac_t; - Json::Value acq(Json::arrayValue); + Json::Value acq(Json::objectValue); BOOST_FOREACH(ac_t& at, mAcquired) { - acq.append(at.first.GetHex()); + if (at.second) + acq[at.first.GetHex()] = "acquired"; + else + acq[at.first.GetHex()] = "failed"; } ret["acquired"] = acq; }