diff --git a/src/FieldNames.cpp b/src/FieldNames.cpp index 316410ffb6..98ba23616e 100644 --- a/src/FieldNames.cpp +++ b/src/FieldNames.cpp @@ -8,6 +8,9 @@ SField sfInvalid(-1), sfGeneric(0); +SField sfLedgerEntry(FIELD_CODE(STI_LEDGERENTRY, 1), STI_LEDGERENTRY, 1, "LedgerEntry"); +SField sfTransaction(FIELD_CODE(STI_TRANSACTION, 1), STI_TRANSACTION, 1, "Transaction"); +SField sfValidation(FIELD_CODE(STI_VALIDATION, 1), STI_VALIDATION, 1, "Validation"); #define FIELD(name, type, index) SField sf##name(FIELD_CODE(STI_##type, index), STI_##type, index, #name); #define TYPE(name, type, index) diff --git a/src/FieldNames.h b/src/FieldNames.h index cfcb649f06..8dbbb0bcd4 100644 --- a/src/FieldNames.h +++ b/src/FieldNames.h @@ -21,9 +21,9 @@ enum SerializedTypeID #undef FIELD // high level types - STI_TRANSACTION = 100001, - STI_LEDGERENTRY = 100002, - STI_VALIDATION = 100003, + STI_TRANSACTION = 10001, + STI_LEDGERENTRY = 10002, + STI_VALIDATION = 10003, }; enum SOE_Flags @@ -73,7 +73,7 @@ public: static int compare(SField::ref f1, SField::ref f2); }; -extern SField sfInvalid, sfGeneric; +extern SField sfInvalid, sfGeneric, sfLedgerEntry, sfTransaction; #define FIELD(name, type, index) extern SField sf##name; #define TYPE(name, type, index)