Skip to content

Commit

Permalink
add : use chain name for heimdalld service when using mainnet/mumbai
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsharma committed Aug 16, 2023
1 parent 190e07f commit 8e576f9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/setup/devnet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,17 @@ export class Devnet {
'sudo mv ~/bor.service /lib/systemd/system/'
], { stdio: getRemoteStdio() })

if (this.config.network) {
const chain = this.config.network
await execa('ssh', [
'-o', 'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null',
'-i', '~/cert.pem',
`${this.config.devnetBorUsers[i]}@${this.config.devnetBorHosts[i]}`,
// eslint-disable-next-line
`sed -i "s|\\/var/lib/heimdall/config/genesis.json|${chain}|g" ~/heimdalld.service`
], { stdio: getRemoteStdio() })
}

await execa(
'ssh',
[
Expand Down

0 comments on commit 8e576f9

Please sign in to comment.