Skip to content

Commit

Permalink
fix: for HPMN should be used only bls basic, enforce that rule
Browse files Browse the repository at this point in the history
  • Loading branch information
knst authored and UdjinM6 committed Jun 20, 2023
1 parent b2d41f6 commit 5989de8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/evo/providertx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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,
Expand Down

0 comments on commit 5989de8

Please sign in to comment.