From 2c5a7b0a33aaebe09d2d23acd4d63dcf4f2e960f Mon Sep 17 00:00:00 2001 From: Siddharth Suresh Date: Mon, 26 Aug 2024 13:39:11 -0700 Subject: [PATCH] Fix test to not use setting before the right protocol version --- .../test/BucketListIsConsistentWithDatabaseTests.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/invariant/test/BucketListIsConsistentWithDatabaseTests.cpp b/src/invariant/test/BucketListIsConsistentWithDatabaseTests.cpp index 7a6b0731e3..67a57fa0e1 100644 --- a/src/invariant/test/BucketListIsConsistentWithDatabaseTests.cpp +++ b/src/invariant/test/BucketListIsConsistentWithDatabaseTests.cpp @@ -60,6 +60,18 @@ struct BucketListGenerator // on those entries. for (auto t : xdr::xdr_traits::enum_values()) { +#ifdef ENABLE_NEXT_PROTOCOL_VERSION_UNSAFE_FOR_PRODUCTION + // This setting has been introduced in the vnext xdr, but it's + // not used in code yet. This check can be replaced with a + // runtime protocol check once we create the setting in the + // upgrade path. + if (static_cast(t) == + ConfigSettingID:: + CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0) + { + continue; + } +#endif LedgerKey ckey(CONFIG_SETTING); ckey.configSetting().configSettingID = static_cast(t);