mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 11:35:53 +00:00
Fix dir describer when an offer is added to a directory.
Check all amounts for orders, fees, and payments to make sure they're network legal.
This commit is contained in:
@@ -27,6 +27,9 @@ TER PaymentTransactor::doApply()
|
||||
% saMaxAmount.getFullText()
|
||||
% saDstAmount.getFullText());
|
||||
|
||||
if (!saDstAmount.isLegalNet() || !saMaxAmount.isLegalNet())
|
||||
return temBAD_AMOUNT;
|
||||
|
||||
if (uTxFlags & tfPaymentMask)
|
||||
{
|
||||
WriteLog (lsINFO, PaymentTransactor) << "Payment: Malformed transaction: Invalid flags set.";
|
||||
|
||||
Reference in New Issue
Block a user