mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix ripple bugs.
- Default send max inherits source account as issuer. - Add end point implications for node expansion. - Fix rippling through accounts.
This commit is contained in:
@@ -462,7 +462,11 @@ TER TransactionEngine::doPayment(const SerializedTransaction& txn, const Transac
|
||||
const bool bMax = txn.isFieldPresent(sfSendMax);
|
||||
const uint160 uDstAccountID = txn.getFieldAccount160(sfDestination);
|
||||
const STAmount saDstAmount = txn.getFieldAmount(sfAmount);
|
||||
const STAmount saMaxAmount = bMax ? txn.getFieldAmount(sfSendMax) : saDstAmount;
|
||||
const STAmount saMaxAmount = bMax
|
||||
? txn.getFieldAmount(sfSendMax)
|
||||
: saDstAmount.isNative()
|
||||
? saDstAmount
|
||||
: STAmount(saDstAmount.getCurrency(), mTxnAccountID, saDstAmount.getMantissa(), saDstAmount.getExponent(), saDstAmount.isNegative());
|
||||
const uint160 uSrcCurrency = saMaxAmount.getCurrency();
|
||||
const uint160 uDstCurrency = saDstAmount.getCurrency();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user