mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Emergency patch to fix ledger not closing.
Do not timeout on acquiring a transaction set if a trusted peer still proposes it. Instead, fetch more aggressively.
This commit is contained in:
@@ -347,6 +347,18 @@ void LedgerConsensus::takeInitialPosition(Ledger& initialLedger)
|
||||
propose();
|
||||
}
|
||||
|
||||
bool LedgerConsensus::stillNeedTXSet(const uint256& hash)
|
||||
{
|
||||
if (mAcquired.find(hash) != mAcquired.end())
|
||||
return false;
|
||||
BOOST_FOREACH(u160_prop_pair& it, mPeerPositions)
|
||||
{
|
||||
if (it.second->getCurrentHash() == hash)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void LedgerConsensus::createDisputes(SHAMap::ref m1, SHAMap::ref m2)
|
||||
{
|
||||
SHAMap::SHAMapDiff differences;
|
||||
|
||||
Reference in New Issue
Block a user