From bd01b4466c5b3754be4e15dc4d4bedbe26ab463c Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 21 Feb 2024 11:40:59 -0800 Subject: [PATCH] Fix typo that inverts condition of test --- src/herder/Upgrades.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/herder/Upgrades.cpp b/src/herder/Upgrades.cpp index d2b9ee0c35..7bfb25d31d 100644 --- a/src/herder/Upgrades.cpp +++ b/src/herder/Upgrades.cpp @@ -676,7 +676,7 @@ Upgrades::isValid(UpgradeType const& upgrade, LedgerUpgradeType& upgradeType, res = res && isValidForNomination(lupgrade, ltx, header); } - if (res && lupgrade.type() != LEDGER_UPGRADE_VERSION) + if (res && lupgrade.type() == LEDGER_UPGRADE_VERSION) { // We enforce here that _voting_ for any soroban-era protocol upgrade // only happens from nodes that have two copies of soroban compiled-in