mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 10:35:50 +00:00
Implement "Default Ripple" logic in LedgerEntrySet::checkState
This commit is contained in:
@@ -1730,7 +1730,9 @@ bool LedgerEntrySet::checkState (
|
||||
// Sender is zero or negative.
|
||||
&& (flags & (!bIssuerHigh ? lsfLowReserve : lsfHighReserve))
|
||||
// Sender reserve is set.
|
||||
&& !(flags & (!bIssuerHigh ? lsfLowNoRipple : lsfHighNoRipple))
|
||||
&& static_cast <bool> (flags & (!bIssuerHigh ? lsfLowNoRipple : lsfHighNoRipple)) !=
|
||||
static_cast <bool> (entryCache (ltACCOUNT_ROOT,
|
||||
getAccountRootIndex (sender))->getFlags() & lsfDefaultRipple)
|
||||
&& !(flags & (!bIssuerHigh ? lsfLowFreeze : lsfHighFreeze))
|
||||
&& !state->getFieldAmount (
|
||||
!bIssuerHigh ? sfLowLimit : sfHighLimit)
|
||||
|
||||
Reference in New Issue
Block a user