mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +00:00
Merge branch 'master' of github.com:jedmccaleb/NewCoin
This commit is contained in:
@@ -1164,10 +1164,10 @@ std::vector<RippleAddress>
|
||||
return accounts;
|
||||
}
|
||||
|
||||
bool NetworkOPs::recvValidation(SerializedValidation::ref val)
|
||||
bool NetworkOPs::recvValidation(SerializedValidation::ref val, const std::string& source)
|
||||
{
|
||||
cLog(lsDEBUG) << "recvValidation " << val->getLedgerHash();
|
||||
return theApp->getValidations().addValidation(val);
|
||||
cLog(lsDEBUG) << "recvValidation " << val->getLedgerHash() << " from " << source;
|
||||
return theApp->getValidations().addValidation(val, source);
|
||||
}
|
||||
|
||||
Json::Value NetworkOPs::getConsensusInfo()
|
||||
@@ -1665,18 +1665,20 @@ void NetworkOPs::unsubAccountChanges(InfoSub* isrListener)
|
||||
// <-- bool: true=added, false=already there
|
||||
bool NetworkOPs::subLedger(InfoSub::ref isrListener, Json::Value& jvResult)
|
||||
{
|
||||
Ledger::pointer lpClosed = getClosedLedger();
|
||||
Ledger::pointer lpClosed = getValidatedLedger();
|
||||
if (lpClosed)
|
||||
{
|
||||
jvResult["ledger_index"] = lpClosed->getLedgerSeq();
|
||||
jvResult["ledger_hash"] = lpClosed->getHash().ToString();
|
||||
jvResult["ledger_time"] = Json::Value::UInt(lpClosed->getCloseTimeNC());
|
||||
|
||||
jvResult["ledger_index"] = lpClosed->getLedgerSeq();
|
||||
jvResult["ledger_hash"] = lpClosed->getHash().ToString();
|
||||
jvResult["ledger_time"] = Json::Value::UInt(lpClosed->getCloseTimeNC());
|
||||
jvResult["fee_ref"] = Json::UInt(lpClosed->getReferenceFeeUnits());
|
||||
jvResult["fee_base"] = Json::UInt(lpClosed->getBaseFee());
|
||||
jvResult["reserve_base"] = Json::UInt(lpClosed->getReserve(0));
|
||||
jvResult["reserve_inc"] = Json::UInt(lpClosed->getReserveInc());
|
||||
}
|
||||
|
||||
jvResult["fee_ref"] = Json::UInt(lpClosed->getReferenceFeeUnits());
|
||||
jvResult["fee_base"] = Json::UInt(lpClosed->getBaseFee());
|
||||
jvResult["reserve_base"] = Json::UInt(lpClosed->getReserve(0));
|
||||
jvResult["reserve_inc"] = Json::UInt(lpClosed->getReserveInc());
|
||||
|
||||
if ((mMode == omFULL) || (mMode == omTRACKING))
|
||||
if (((mMode == omFULL) || (mMode == omTRACKING)) && !isNeedNetworkLedger())
|
||||
jvResult["validated_ledgers"] = theApp->getLedgerMaster().getCompleteLedgers();
|
||||
|
||||
boost::recursive_mutex::scoped_lock sl(mMonitorLock);
|
||||
|
||||
Reference in New Issue
Block a user