From 9c94759342a3d167c6a30ed1eb5429e8a5e048a2 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Wed, 15 Jul 2020 12:41:41 -0700 Subject: [PATCH] Bug fix --- src/cryptonote_config.h | 2 ++ src/cryptonote_core/cryptonote_basic.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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() };