diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h index 7280727..e902cbc 100644 --- a/src/cryptonote_config.h +++ b/src/cryptonote_config.h @@ -2,6 +2,8 @@ #define CURRENT_TRANSACTION_VERSION 1 #define OFFSHORE_TRANSACTION_VERSION 3 +#define HF_VERSION_OFFSHORE_PRICING 11 +#define HF_VERSION_OFFSHORE_FULL 13 enum BLOB_TYPE { BLOB_TYPE_CRYPTONOTE = 0, diff --git a/src/cryptonote_core/cryptonote_basic.h b/src/cryptonote_core/cryptonote_basic.h index 4235f01..d694862 100644 --- a/src/cryptonote_core/cryptonote_basic.h +++ b/src/cryptonote_core/cryptonote_basic.h @@ -513,7 +513,7 @@ namespace cryptonote } if (blob_type == BLOB_TYPE_CRYPTONOTE_XTNC || blob_type == BLOB_TYPE_CRYPTONOTE_CUCKOO) FIELD(cycle) if (blob_type == BLOB_TYPE_CRYPTONOTE_TUBE) FIELD(cycle40) - if (blob_type == BLOB_TYPE_CRYPTONOTE_XHV) FIELD(pricing_record) + if (blob_type == BLOB_TYPE_CRYPTONOTE_XHV && major_version >= HF_VERSION_OFFSHORE_PRICING) FIELD(pricing_record) END_SERIALIZE() };