mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Only touch InboundLedgers on success so failed acquires can expire
This commit is contained in:
@@ -66,10 +66,14 @@ public:
|
|||||||
{
|
{
|
||||||
auto it = mLedgers.find (hash);
|
auto it = mLedgers.find (hash);
|
||||||
if (it != mLedgers.end ())
|
if (it != mLedgers.end ())
|
||||||
|
{
|
||||||
|
// Don't touch failed acquires so they can expire
|
||||||
|
if (! it->second->isFailed ())
|
||||||
{
|
{
|
||||||
it->second->update (seq);
|
it->second->update (seq);
|
||||||
if (it->second->isComplete() && !it->second->isFailed())
|
if (it->second->isComplete ())
|
||||||
ret = it->second->getLedger();
|
ret = it->second->getLedger ();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user