Skip to content

Commit

Permalink
remove no-op upgrade, specify offset type
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBrady committed Aug 27, 2024
1 parent 322e5ca commit 2839719
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/herder/test/HerderTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3436,7 +3436,6 @@ TEST_CASE("accept soroban txs after network upgrade", "[soroban][herder]")
15);
scheduledUpgrades.mProtocolVersion =
static_cast<uint32_t>(SOROBAN_PROTOCOL_VERSION);
// TODO maybe use loadgen for these upgrades
for (auto const& app : nodes)
{
app->getHerder().setUpgrades(scheduledUpgrades);
Expand Down Expand Up @@ -4194,12 +4193,6 @@ herderExternalizesValuesWithProtocol(uint32_t version)
simulation->removeNode(validatorCKey.getPublicKey());
configC.MAX_SLOTS_TO_REMEMBER += 5;
auto newC = simulation->addNode(validatorCKey, qset, &configC, false);
if (protocolVersionStartsFrom(version, SOROBAN_PROTOCOL_VERSION))
{
modifySorobanNetworkConfig(*newC, [&](SorobanNetworkConfig& cfg) {
cfg.mStateArchivalSettings.bucketListWindowSamplePeriod = 1;
});
}
newC->start();
HerderImpl& newHerderC = *static_cast<HerderImpl*>(&newC->getHerder());

Expand All @@ -4210,7 +4203,6 @@ herderExternalizesValuesWithProtocol(uint32_t version)
SECTION("tracking")
{
receiveLedger(destinationLedger, newHerderC);

checkHerder(*newC, newHerderC,
Herder::State::HERDER_TRACKING_NETWORK_STATE,
currentlyTracking);
Expand Down
2 changes: 1 addition & 1 deletion src/test/TestUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ upgradeSorobanNetworkConfig(std::function<void(SorobanNetworkConfig&)> modifyFn,
app.getMetrics().NewMeter({"loadgen", "run", "complete"}, "run");
auto completeCount = complete.count();
// Only create an account if there are none aleady created.
auto offset = 0;
uint32_t offset = 0;
if (app.getMetrics()
.NewMeter({"loadgen", "account", "created"}, "account")
.count() == 0)
Expand Down

0 comments on commit 2839719

Please sign in to comment.