@@ -251,7 +251,7 @@ makeBucketListSizeWindowSampleSizeTestUpgrade(Application& app,
251
251
{
252
252
// Modify window size
253
253
auto sas = app.getLedgerManager ()
254
- .getSorobanNetworkConfig ()
254
+ .getSorobanNetworkConfigReadOnly ()
255
255
.stateArchivalSettings ();
256
256
sas.bucketListSizeWindowSampleSize = newWindowSize;
257
257
@@ -837,7 +837,7 @@ TEST_CASE("config upgrades applied to ledger", "[soroban][upgrades]")
837
837
executeUpgrade (*app, makeProtocolVersionUpgrade (
838
838
static_cast <uint32_t >(SOROBAN_PROTOCOL_VERSION)));
839
839
auto const & sorobanConfig =
840
- app->getLedgerManager ().getSorobanNetworkConfig ();
840
+ app->getLedgerManager ().getSorobanNetworkConfigReadOnly ();
841
841
SECTION (" unknown config upgrade set is ignored" )
842
842
{
843
843
auto contractID = autocheck::generator<Hash>()(5 );
@@ -905,7 +905,7 @@ TEST_CASE("config upgrades applied to ledger", "[soroban][upgrades]")
905
905
auto const newSize = 20 ;
906
906
populateValuesAndUpgradeSize (newSize);
907
907
auto const & cfg2 =
908
- app->getLedgerManager ().getSorobanNetworkConfig ();
908
+ app->getLedgerManager ().getSorobanNetworkConfigReadOnly ();
909
909
910
910
// Verify that we popped the 10 oldest values
911
911
auto sum = 0 ;
@@ -927,7 +927,7 @@ TEST_CASE("config upgrades applied to ledger", "[soroban][upgrades]")
927
927
auto const newSize = 40 ;
928
928
populateValuesAndUpgradeSize (newSize);
929
929
auto const & cfg2 =
930
- app->getLedgerManager ().getSorobanNetworkConfig ();
930
+ app->getLedgerManager ().getSorobanNetworkConfigReadOnly ();
931
931
932
932
// Verify that we backfill 10 copies of the oldest value
933
933
auto sum = 0 ;
@@ -957,7 +957,7 @@ TEST_CASE("config upgrades applied to ledger", "[soroban][upgrades]")
957
957
LedgerTxn ltx2 (app->getLedgerTxnRoot ());
958
958
959
959
auto const & cfg =
960
- app->getLedgerManager ().getSorobanNetworkConfig ();
960
+ app->getLedgerManager ().getSorobanNetworkConfigReadOnly ();
961
961
initialSize =
962
962
cfg.mStateArchivalSettings .bucketListSizeWindowSampleSize ;
963
963
initialWindow = cfg.mBucketListSizeSnapshots ;
@@ -972,7 +972,8 @@ TEST_CASE("config upgrades applied to ledger", "[soroban][upgrades]")
972
972
REQUIRE (configUpgradeSet);
973
973
executeUpgrade (*app, makeConfigUpgrade (*configUpgradeSet));
974
974
975
- auto const & cfg = app->getLedgerManager ().getSorobanNetworkConfig ();
975
+ auto const & cfg =
976
+ app->getLedgerManager ().getSorobanNetworkConfigReadOnly ();
976
977
REQUIRE (cfg.mStateArchivalSettings .bucketListSizeWindowSampleSize ==
977
978
initialSize);
978
979
REQUIRE (cfg.mBucketListSizeSnapshots == initialWindow);
@@ -1086,7 +1087,7 @@ TEST_CASE("Soroban max tx set size upgrade applied to ledger",
1086
1087
static_cast <uint32_t >(SOROBAN_PROTOCOL_VERSION)));
1087
1088
1088
1089
auto const & sorobanConfig =
1089
- app->getLedgerManager ().getSorobanNetworkConfig ();
1090
+ app->getLedgerManager ().getSorobanNetworkConfigReadOnly ();
1090
1091
1091
1092
executeUpgrade (*app, makeMaxSorobanTxSizeUpgrade (123 ));
1092
1093
REQUIRE (sorobanConfig.ledgerMaxTxCount () == 123 );
@@ -2245,7 +2246,8 @@ TEST_CASE("configuration initialized in version upgrade", "[upgrades]")
2245
2246
InitialSorobanNetworkConfig::MAX_CONTRACT_SIZE);
2246
2247
2247
2248
// Check that BucketList size window initialized with current BL size
2248
- auto & networkConfig = app->getLedgerManager ().getSorobanNetworkConfig ();
2249
+ auto & networkConfig =
2250
+ app->getLedgerManager ().getSorobanNetworkConfigReadOnly ();
2249
2251
REQUIRE (networkConfig.getAverageBucketListSize () == blSize);
2250
2252
2251
2253
// Check in memory window
0 commit comments