mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Correctly handle one-element paths. Don't call setCanonical, it's broken.
This commit is contained in:
@@ -559,6 +559,7 @@ void PathState::setCanonical(
|
||||
const PathState& psExpanded
|
||||
)
|
||||
{
|
||||
assert(false);
|
||||
saInAct = psExpanded.saInAct;
|
||||
saOutAct = psExpanded.saOutAct;
|
||||
|
||||
@@ -572,7 +573,7 @@ void PathState::setCanonical(
|
||||
|
||||
unsigned int uEnd = psExpanded.vpnNodes.size(); // The node, indexed by 0, not to include.
|
||||
|
||||
uint160 uDstAccountID = psExpanded.vpnNodes[uEnd].uAccountID;
|
||||
uint160 uDstAccountID = psExpanded.vpnNodes[uEnd].uAccountID; // FIXME: This can't be right
|
||||
|
||||
uint160 uAccountID = psExpanded.vpnNodes[0].uAccountID;
|
||||
uint160 uCurrencyID = uMaxCurrencyID;
|
||||
|
||||
Reference in New Issue
Block a user