mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 14:35:52 +00:00
Don't assert if a payment chains two offers from the same offeror.
This commit is contained in:
@@ -1577,7 +1577,9 @@ TER LedgerEntrySet::accountSend (const uint160& uSenderID, const uint160& uRecei
|
||||
{
|
||||
TER terResult = tesSUCCESS;
|
||||
|
||||
if (!saAmount)
|
||||
assert (!saAmount.isNegative ());
|
||||
|
||||
if (!saAmount || (uSenderID == uReceiverID))
|
||||
{
|
||||
nothing ();
|
||||
}
|
||||
@@ -1598,8 +1600,6 @@ TER LedgerEntrySet::accountSend (const uint160& uSenderID, const uint160& uRecei
|
||||
% (sleReceiver ? (sleReceiver->getFieldAmount (sfBalance)).getFullText () : "-")
|
||||
% saAmount.getFullText ());
|
||||
|
||||
assert (!saAmount.isNegative ());
|
||||
|
||||
if (sleSender)
|
||||
{
|
||||
if (sleSender->getFieldAmount (sfBalance) < saAmount)
|
||||
@@ -1635,7 +1635,6 @@ TER LedgerEntrySet::accountSend (const uint160& uSenderID, const uint160& uRecei
|
||||
% RippleAddress::createHumanAccountID (uReceiverID)
|
||||
% saAmount.getFullText ());
|
||||
|
||||
assert (!saAmount.isNegative ());
|
||||
|
||||
terResult = rippleSend (uSenderID, uReceiverID, saAmount, saActual);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user