mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Reduce STAmount public interface (RIPD-867):
* Implement subtraction as addition to the additive inverse * Do not allow comparison with, addition to or subtraction from integers * Remove unused functions * Convert member functions to free functions * Isolate unit-test specific code into the unit test
This commit is contained in:
@@ -297,7 +297,7 @@ bool Pathfinder::findPaths (int searchLevel)
|
||||
return false;
|
||||
}
|
||||
|
||||
auto reserve = mLedger->getReserve (0);
|
||||
auto const reserve = STAmount (mLedger->getReserve (0));
|
||||
if (mDstAmount < reserve)
|
||||
{
|
||||
WriteLog (lsDEBUG, Pathfinder)
|
||||
@@ -908,7 +908,7 @@ void Pathfinder::addLink (
|
||||
// add accounts
|
||||
if (bOnXRP)
|
||||
{
|
||||
if (mDstAmount.isNative () && !currentPath.empty ())
|
||||
if (mDstAmount.native () && !currentPath.empty ())
|
||||
{ // non-default path to XRP destination
|
||||
WriteLog (lsTRACE, Pathfinder)
|
||||
<< "complete path found ax: " << currentPath.getJson(0);
|
||||
|
||||
Reference in New Issue
Block a user