mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +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:
@@ -48,6 +48,8 @@ uint64 Transactor::calculateBaseFee()
|
||||
TER Transactor::payFee()
|
||||
{
|
||||
STAmount saPaid = mTxn.getTransactionFee();
|
||||
if (!saPaid.isLegalNet())
|
||||
return temBAD_AMOUNT;
|
||||
|
||||
// Only check fee is sufficient when the ledger is open.
|
||||
if (isSetBit(mParams, tapOPEN_LEDGER) && saPaid < mFeeDue)
|
||||
|
||||
Reference in New Issue
Block a user