Skip to content

Commit

Permalink
Fix test to not use setting before the right protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
sisuresh committed Aug 26, 2024
1 parent d39a64c commit 09eb173
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/invariant/test/BucketListIsConsistentWithDatabaseTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ struct BucketListGenerator
// on those entries.
for (auto t : xdr::xdr_traits<ConfigSettingID>::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<ConfigSettingID>(t) ==
ConfigSettingID::
CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0)
{
continue;
}
#endif
LedgerKey ckey(CONFIG_SETTING);
ckey.configSetting().configSettingID =
static_cast<ConfigSettingID>(t);
Expand Down

0 comments on commit 09eb173

Please sign in to comment.