Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/App/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,8 @@ let main argv =
benchmarkDurationSeconds = Some 30
enableTcpTuning = false
minBlockTimeMs = 4000
maxBlockTimeMs = 5000 }
maxBlockTimeMs = 5000
runForMinBlockTime = false }

let nCfg = MakeNetworkCfg ctx [] None
use formation = kube.MakeEmptyFormation(nCfg)
Expand Down Expand Up @@ -926,7 +927,8 @@ let main argv =
benchmarkDurationSeconds = Some mission.BenchmarkDurationSeconds
enableTcpTuning = mission.EnableTcpTuning
minBlockTimeMs = mission.MinBlockTimeMs
maxBlockTimeMs = mission.MaxBlockTimeMs }
maxBlockTimeMs = mission.MaxBlockTimeMs
runForMinBlockTime = false }

allMissions.[m] missionContext

Expand Down
3 changes: 2 additions & 1 deletion src/FSLibrary.Tests/Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ let ctx : MissionContext =
benchmarkDurationSeconds = None
enableTcpTuning = false
minBlockTimeMs = 4000
maxBlockTimeMs = 5000 }
maxBlockTimeMs = 5000
runForMinBlockTime = false }

let netdata = __SOURCE_DIRECTORY__ + "/../../../data/public-network-data-2024-08-01.json"
let pubkeys = __SOURCE_DIRECTORY__ + "/../../../data/tier1keys.json"
Expand Down
1 change: 1 addition & 0 deletions src/FSLibrary/MinBlockTimeTest.fs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ let minBlockTimeTest (context: MissionContext) (baseLoadGen: LoadGen) (setupCfg:

let context =
{ context with
runForMinBlockTime = true
genesisTestAccountCount = Some(context.genesisTestAccountCount |> Option.defaultValue 100000)
numPregeneratedTxs =
if baseLoadGen.mode = PayPregenerated then
Expand Down
3 changes: 3 additions & 0 deletions src/FSLibrary/StellarCoreCfg.fs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ type StellarCoreCfg =
t.Add("COMMANDS", logLevelCommands) |> ignore
t.Add("CATCHUP_COMPLETE", self.catchupMode = CatchupComplete) |> ignore

if self.network.missionContext.runForMinBlockTime then
t.Add("TESTING_IGNORE_LEDGER_TIME_UPGRADE_BOUNDS", true) |> ignore
Comment thread
marta-lokhova marked this conversation as resolved.

match self.network.missionContext.runForMaxTps with
| Some "classic" ->
t.Add("TESTING_MAX_CLASSIC_BYTE_ALLOWANCE", 1024 * 1024 * 9) |> ignore
Expand Down
3 changes: 2 additions & 1 deletion src/FSLibrary/StellarMissionContext.fs
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,5 @@ type MissionContext =
benchmarkDurationSeconds: int option
enableTcpTuning: bool
minBlockTimeMs: int
maxBlockTimeMs: int }
maxBlockTimeMs: int
runForMinBlockTime: bool }
Comment thread
marta-lokhova marked this conversation as resolved.
Loading