Skip to content

Commit

Permalink
GH-1690 Add backwards compatibility for --produce-block-offset-ms 0
Browse files Browse the repository at this point in the history
… for performance harness
  • Loading branch information
heifner committed Oct 25, 2023
1 parent 339f542 commit bfe2a4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/TestHarness/Cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ def connectGroup(group, producerNodes, bridgeNodes) :
if "--plugin eosio::history_api_plugin" in args:
argsArr.append("--is-nodeos-v2")
break

# Handle common case of specifying no block offset for older versions
if "v2" in self.nodeosVers or "v3" in self.nodeosVers or "v4" in self.nodeosVers:
argsArr = list(map(lambda st: str.replace(st, "--produce-block-offset-ms 0", "--last-block-time-offset-us 0 --last-block-cpu-effort-percent 100"), argsArr))

Cluster.__LauncherCmdArr = argsArr.copy()

launcher = cluster_generator(argsArr)
Expand Down

0 comments on commit bfe2a4c

Please sign in to comment.