mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Pathfinding dispatch improvements
* Keep requests forwards, flip only on insert * Insert requests in more sensible order (after new, before old) * Remove a redundant cache/request check
This commit is contained in:
@@ -74,6 +74,12 @@ bool PathRequest::isValid ()
|
||||
return bValid;
|
||||
}
|
||||
|
||||
bool PathRequest::isNew ()
|
||||
{
|
||||
// does this path request still need its first full path
|
||||
return iLastIndex.load() == 0;
|
||||
}
|
||||
|
||||
bool PathRequest::needsUpdate (bool newOnly, LedgerIndex index)
|
||||
{
|
||||
LedgerIndex lastIndex = iLastIndex.load();
|
||||
|
||||
Reference in New Issue
Block a user