mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cleanups and surface reduction:
* Don't use friendship unless needed * Trim down interfaces * Make classes feel more like std containers
This commit is contained in:
@@ -470,7 +470,7 @@ TER PathState::expandPath (
|
||||
|
||||
// Figure out next node properties for implied node.
|
||||
const auto uNxtCurrencyID = spSourcePath.size ()
|
||||
? Currency(spSourcePath.getElement (0).getCurrency ())
|
||||
? Currency(spSourcePath.front ().getCurrency ())
|
||||
// Use next node.
|
||||
: currencyOutID;
|
||||
// Use send.
|
||||
@@ -478,7 +478,7 @@ TER PathState::expandPath (
|
||||
// TODO(tom): complexify this next logic further in case someone
|
||||
// understands it.
|
||||
const auto nextAccountID = spSourcePath.size ()
|
||||
? Account(spSourcePath.getElement (0).getAccountID ())
|
||||
? Account(spSourcePath. front ().getAccountID ())
|
||||
: !isXRP(currencyOutID)
|
||||
? (issuerOutID == uReceiverID)
|
||||
? Account(uReceiverID)
|
||||
|
||||
Reference in New Issue
Block a user