Skip to content

Commit

Permalink
Disable problematic asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
ximinez committed Aug 17, 2024
1 parent 878e449 commit 10b1ded
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/ripple/app/paths/impl/StrandFlow.h
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,11 @@ flow(
// point.
// assert(0);

JLOG(j.fatal()) << "Skipping assert: Mismatch in total flow: "
<< "actualOut: " << to_string(actualOut)
<< " outReq: " << to_string(outReq) << " "
<< (flowDebugInfo ? flowDebugInfo->to_string(true)
: "no flowDebugInfo");
return {tefEXCEPTION, std::move(ofrsToRmOnFail)};
}
if (!partialPayment)
Expand Down
8 changes: 7 additions & 1 deletion src/ripple/ledger/impl/View.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,13 @@ accountSend(
}
else
{
assert(saAmount >= beast::zero);
// assert(saAmount >= beast::zero);
if (saAmount < beast::zero)
{
JLOG(j.fatal()) << "Skipping assert: saAmount < 0" << saAmount;
// Note that since there's no amendment, this will cause a desync
return tecINTERNAL;
}
}

/* If we aren't sending anything or if the sender is the same as the
Expand Down

0 comments on commit 10b1ded

Please sign in to comment.