mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Freeze flags: (RIPD-394)
* Define all flags * Set/clear bits in transactors * Frozen line counts towards reserve, is non-default * Report trust line state
This commit is contained in:
@@ -102,6 +102,8 @@ enum LedgerSpecificFlags
|
||||
lsfRequireAuth = 0x00040000, // True, to require a authorization to hold IOUs.
|
||||
lsfDisallowXRP = 0x00080000, // True, to disallow sending XRP.
|
||||
lsfDisableMaster = 0x00100000, // True, force regular key
|
||||
lsfNoFreeze = 0x00200000, // True, cannot freeze ripple states
|
||||
lsfGlobalFreeze = 0x00400000, // True, all assets frozen
|
||||
|
||||
// ltOFFER
|
||||
lsfPassive = 0x00010000,
|
||||
@@ -114,6 +116,8 @@ enum LedgerSpecificFlags
|
||||
lsfHighAuth = 0x00080000,
|
||||
lsfLowNoRipple = 0x00100000,
|
||||
lsfHighNoRipple = 0x00200000,
|
||||
lsfLowFreeze = 0x00400000, // True, low side has set freeze flag
|
||||
lsfHighFreeze = 0x00800000, // True, high side has set freeze flag
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -63,6 +63,8 @@ const std::uint32_t asfRequireAuth = 2;
|
||||
const std::uint32_t asfDisallowXRP = 3;
|
||||
const std::uint32_t asfDisableMaster = 4;
|
||||
const std::uint32_t asfAccountTxnID = 5;
|
||||
const std::uint32_t asfNoFreeze = 6;
|
||||
const std::uint32_t asfGlobalFreeze = 7;
|
||||
|
||||
// OfferCreate flags:
|
||||
const std::uint32_t tfPassive = 0x00010000;
|
||||
@@ -81,7 +83,10 @@ const std::uint32_t tfPaymentMask = ~ (tfUniversal | tfPartialPayment |
|
||||
const std::uint32_t tfSetfAuth = 0x00010000;
|
||||
const std::uint32_t tfSetNoRipple = 0x00020000;
|
||||
const std::uint32_t tfClearNoRipple = 0x00040000;
|
||||
const std::uint32_t tfTrustSetMask = ~ (tfUniversal | tfSetfAuth | tfSetNoRipple | tfClearNoRipple);
|
||||
const std::uint32_t tfSetFreeze = 0x00100000;
|
||||
const std::uint32_t tfClearFreeze = 0x00200000;
|
||||
const std::uint32_t tfTrustSetMask = ~ (tfUniversal | tfSetfAuth | tfSetNoRipple | tfClearNoRipple
|
||||
| tfSetFreeze | tfClearFreeze);
|
||||
|
||||
} // ripple
|
||||
|
||||
|
||||
Reference in New Issue
Block a user