mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Handle strand creation for erroneous self-payment
This commit is contained in:
@@ -101,7 +101,7 @@ toStep (
|
||||
if (e1->isOffer() && e2->isAccount())
|
||||
{
|
||||
// should already be taken care of
|
||||
JLOG (j.warn())
|
||||
JLOG (j.error())
|
||||
<< "Found offer/account payment step. Aborting payment strand.";
|
||||
assert (0);
|
||||
if (ctx.view.rules().enabled(fix1373))
|
||||
@@ -498,6 +498,9 @@ toStrandV2 (
|
||||
}
|
||||
}
|
||||
|
||||
if (normPath.size() < 2)
|
||||
return {temBAD_PATH, Strand{}};
|
||||
|
||||
auto const strandSrc = normPath.front().getAccountID ();
|
||||
auto const strandDst = normPath.back().getAccountID ();
|
||||
bool const isDefaultPath = path.empty();
|
||||
|
||||
Reference in New Issue
Block a user