Start moving to SetFlag/ClearFlag

This commit is contained in:
JoelKatz
2013-06-17 18:52:08 -07:00
parent 36a84484e0
commit 8e2c65d4e0
3 changed files with 5 additions and 4 deletions

View File

@@ -79,6 +79,8 @@ FIELD (OperationLimit, UINT32, 29)
FIELD (ReferenceFeeUnits, UINT32, 30) FIELD (ReferenceFeeUnits, UINT32, 30)
FIELD (ReserveBase, UINT32, 31) FIELD (ReserveBase, UINT32, 31)
FIELD (ReserveIncrement, UINT32, 32) FIELD (ReserveIncrement, UINT32, 32)
FIELD (SetFlag, UINT32, 33)
FIELD (ClearFlag, UINT32, 34)
// 64-bit integers // 64-bit integers
FIELD (IndexNext, UINT64, 1) FIELD (IndexNext, UINT64, 1)

View File

@@ -33,12 +33,9 @@ const uint32 tfRequireAuth = 0x00040000;
const uint32 tfOptionalAuth = 0x00080000; const uint32 tfOptionalAuth = 0x00080000;
const uint32 tfDisallowXRP = 0x00100000; const uint32 tfDisallowXRP = 0x00100000;
const uint32 tfAllowXRP = 0x00200000; const uint32 tfAllowXRP = 0x00200000;
const uint32 tfDisableMaster = 0x00400000;
const uint32 tfEnableMaster = 0x00800000;
const uint32 tfAccountSetMask = ~ (TxFlag::requireDestTag | tfOptionalDestTag const uint32 tfAccountSetMask = ~ (TxFlag::requireDestTag | tfOptionalDestTag
| tfRequireAuth | tfOptionalAuth | tfRequireAuth | tfOptionalAuth
| tfDisallowXRP | tfAllowXRP | tfDisallowXRP | tfAllowXRP);
| tfDisableMaster | tfEnableMaster);
// OfferCreate flags: // OfferCreate flags:
const uint32 tfPassive = 0x00010000; const uint32 tfPassive = 0x00010000;

View File

@@ -31,6 +31,8 @@ void TFInit ()
<< SOElement (sfMessageKey, SOE_OPTIONAL) << SOElement (sfMessageKey, SOE_OPTIONAL)
<< SOElement (sfDomain, SOE_OPTIONAL) << SOElement (sfDomain, SOE_OPTIONAL)
<< SOElement (sfTransferRate, SOE_OPTIONAL) << SOElement (sfTransferRate, SOE_OPTIONAL)
<< SOElement (sfSetFlag, SOE_OPTIONAL)
<< SOElement (sfClearFlag, SOE_OPTIONAL)
; ;
DECLARE_TF (TrustSet, ttTRUST_SET) DECLARE_TF (TrustSet, ttTRUST_SET)