Skip to content

Commit

Permalink
Fix validate_nodeos_plugin_args test by updating NetPlugingArgs default.
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwaldp-oci committed Feb 9, 2023
1 parent 5082223 commit 3022c7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/performance_tests/NodeosPluginArgs/NetPluginArgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class NetPluginArgs(BasePluginArgs):
_p2pDedupCacheExpireTimeSecNodeosDefault: int=10
_p2pDedupCacheExpireTimeSecNodeosArg: str="--p2p-dedup-cache-expire-time-sec"
netThreads: int=None
_netThreadsNodeosDefault: int=2
_netThreadsNodeosDefault: int=4
_netThreadsNodeosArg: str="--net-threads"
syncFetchSpan: int=None
_syncFetchSpanNodeosDefault: int=100
Expand Down
2 changes: 1 addition & 1 deletion tests/performance_tests/performance_test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def createBaseArgumentParser():
In \"heap\" mode database is preloaded in to swappable memory and will use huge pages if available. \
In \"locked\" mode database is preloaded, locked in to memory, and will use huge pages if available.",
choices=["mapped", "heap", "locked"], default="mapped")
ptbBaseParserGroup.add_argument("--net-threads", type=int, help="Number of worker threads in net_plugin thread pool", default=2)
ptbBaseParserGroup.add_argument("--net-threads", type=int, help="Number of worker threads in net_plugin thread pool", default=4)
ptbBaseParserGroup.add_argument("--disable-subjective-billing", type=bool, help="Disable subjective CPU billing for API/P2P transactions", default=True)
ptbBaseParserGroup.add_argument("--last-block-time-offset-us", type=int, help="Offset of last block producing time in microseconds. Valid range 0 .. -block_time_interval.", default=0)
ptbBaseParserGroup.add_argument("--produce-time-offset-us", type=int, help="Offset of non last block producing time in microseconds. Valid range 0 .. -block_time_interval.", default=0)
Expand Down

0 comments on commit 3022c7c

Please sign in to comment.