XLA fork support

This commit is contained in:
MoneroOcean
2023-09-26 16:42:28 +00:00
parent 100f6cb2d5
commit 5ca2284583
3 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "cryptoforknote-util",
"version": "15.0.1",
"version": "15.1.0",
"main": "cryptoforknote-util",
"author": {
"name": "LucasJones",

View File

@@ -35,4 +35,5 @@ enum BLOB_TYPE {
BLOB_TYPE_CRYPTONOTE_XHV = 11, // Haven
BLOB_TYPE_CRYPTONOTE_XTA = 12, // ITALO
BLOB_TYPE_CRYPTONOTE_ZEPHYR = 13, // ZEPHYR
BLOB_TYPE_CRYPTONOTE_XLA = 14, // XLA
};

View File

@@ -935,6 +935,7 @@ namespace cryptonote
crypto::cycle cycle;
crypto::cycle40 cycle40;
crypto::cycle48 cycle48;
crypto::signature signature;
BEGIN_SERIALIZE()
VARINT_FIELD(major_version)
@@ -957,6 +958,7 @@ namespace cryptonote
if (blob_type == BLOB_TYPE_CRYPTONOTE_XTA) FIELD(cycle48)
if (blob_type == BLOB_TYPE_CRYPTONOTE_XHV) FIELD(pricing_record)
if (blob_type == BLOB_TYPE_CRYPTONOTE_ZEPHYR) FIELD_N("pricing_record", zephyr_pricing_record)
if (blob_type == BLOB_TYPE_CRYPTONOTE_XLA && major_version >= 13) FIELD(signature)
END_SERIALIZE()
};