From 5989de876f34adcc672a9dfe7f8fcc270b507fb9 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Mon, 19 Jun 2023 03:40:36 +0700 Subject: [PATCH] fix: for HPMN should be used only bls basic, enforce that rule --- src/evo/providertx.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/evo/providertx.h b/src/evo/providertx.h index 14b02b91a78a7..c669ec22d0b51 100644 --- a/src/evo/providertx.h +++ b/src/evo/providertx.h @@ -149,6 +149,10 @@ class CProUpServTx // unknown version, bail out early return; } + if (obj.nVersion != BASIC_BLS_VERSION && obj.nType == MnType::HighPerformance) { + // for HPMN should be only BASIC bls, bail out early + return; + } if (obj.nVersion == BASIC_BLS_VERSION) { READWRITE( obj.nType); @@ -159,7 +163,7 @@ class CProUpServTx obj.scriptOperatorPayout, obj.inputsHash ); - if (obj.nVersion == BASIC_BLS_VERSION && obj.nType == MnType::HighPerformance) { + if (obj.nType == MnType::HighPerformance) { READWRITE( obj.platformNodeID, obj.platformP2PPort,