mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Stop finding paths when enough are found (RIPD-156)
This commit is contained in:
committed by
Vinnie Falco
parent
713c8efcbe
commit
0ce3aeb189
@@ -218,6 +218,8 @@ bool Pathfinder::findPaths (
|
||||
if (costedPath.first <= iLevel)
|
||||
{
|
||||
getPaths(costedPath.second);
|
||||
if (mCompletePaths.size () > PATHFINDER_MAX_COMPLETE_PATHS)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace ripple {
|
||||
// VFALCO TODO Why 40? is the number 40 part of protocol?
|
||||
const int CALC_NODE_DELIVER_MAX_LOOPS = 40;
|
||||
const int NODE_ADVANCE_MAX_LOOPS = 100;
|
||||
|
||||
const int PATHFINDER_MAX_COMPLETE_PATHS = 1000;
|
||||
} // ripple
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user