mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Tighten up some serialization checks
This commit is contained in:
committed by
Nik Bougalis
parent
aec792f5b8
commit
ed2c5078ad
@@ -41,9 +41,11 @@ enum SerializedTypeID
|
||||
#undef FIELD
|
||||
|
||||
// high level types
|
||||
// cannot be serialized inside other types
|
||||
STI_TRANSACTION = 10001,
|
||||
STI_LEDGERENTRY = 10002,
|
||||
STI_VALIDATION = 10003,
|
||||
STI_METADATA = 10004,
|
||||
};
|
||||
|
||||
/** Identifies fields.
|
||||
@@ -239,8 +241,9 @@ protected:
|
||||
SField (SerializedTypeID id, int val);
|
||||
};
|
||||
|
||||
extern const SField sfInvalid, sfGeneric, sfLedgerEntry, sfTransaction,
|
||||
sfValidation;
|
||||
extern const SField
|
||||
sfInvalid, sfGeneric,
|
||||
sfLedgerEntry, sfTransaction, sfValidation, sfMetadata;
|
||||
|
||||
#define FIELD(name, type, index) extern SField sf##name;
|
||||
#define TYPE(name, type, index)
|
||||
|
||||
Reference in New Issue
Block a user