Skip to content

Commit

Permalink
Merge branch 'development': set nice 19 for eth
Browse files Browse the repository at this point in the history
  • Loading branch information
magicnat committed Aug 4, 2021
2 parents 760a1bf + 04c9f31 commit 32749d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seedemu/services/EthereumService.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ def install(self, node: Node, eth: 'EthereumService', allBootnode: bool):
# launch Ethereum process.
common_args = '{} --identity="NODE_{}" --networkid=10 --verbosity=6 --mine --allow-insecure-unlock --rpc --rpcport=8549 --rpcaddr 0.0.0.0'.format(datadir_option, self.__id)
if len(bootnodes) > 0:
node.appendStartCommand('geth --bootnodes "$(cat /tmp/eth-node-urls)" {}'.format(common_args), True)
node.appendStartCommand('nice -n 19 geth --bootnodes "$(cat /tmp/eth-node-urls)" {}'.format(common_args), True)
else:
node.appendStartCommand('geth {}'.format(common_args), True)
node.appendStartCommand('nice -n 19 geth {}'.format(common_args), True)

def getId(self) -> int:
"""!
Expand Down

0 comments on commit 32749d3

Please sign in to comment.