mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-05 08:48:03 +00:00
Temporary workaround.
This commit is contained in:
@@ -1122,11 +1122,13 @@ void PeerImp::recvTransaction (protocol::TMTransaction& packet, ScopedLock& Mast
|
|||||||
if (mCluster)
|
if (mCluster)
|
||||||
flags |= SF_TRUSTED | SF_SIGGOOD;
|
flags |= SF_TRUSTED | SF_SIGGOOD;
|
||||||
|
|
||||||
if (theApp->getJobQueue().getJobCount(jtTRANSACTION) < 100)
|
if (theApp->getJobQueue().getJobCount(jtTRANSACTION) > 100)
|
||||||
|
WriteLog(lsINFO, Peer) << "Transaction queue is full";
|
||||||
|
else if (theApp->getLedgerMaster()->getValidatedLedgerAge() > 240)
|
||||||
|
WriteLog(lsINFO, Peer) << "No new transactions until synchronized";
|
||||||
|
else
|
||||||
theApp->getJobQueue ().addJob (jtTRANSACTION, "recvTransction->checkTransaction",
|
theApp->getJobQueue ().addJob (jtTRANSACTION, "recvTransction->checkTransaction",
|
||||||
BIND_TYPE (&checkTransaction, P_1, flags, stx, boost::weak_ptr<Peer> (shared_from_this ())));
|
BIND_TYPE (&checkTransaction, P_1, flags, stx, boost::weak_ptr<Peer> (shared_from_this ())));
|
||||||
else
|
|
||||||
WriteLog(lsINFO, Peer) << " Transaction queue is full";
|
|
||||||
|
|
||||||
#ifndef TRUST_NETWORK
|
#ifndef TRUST_NETWORK
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user