Skip to content

Commit

Permalink
add pass --recreateStationIdOnError (#1748)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber authored Sep 7, 2024
1 parent 25b59df commit 33b3918
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions main/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,21 @@ function maybeReportErrorToSentry (err, scopeFn) {
async function start (ctx) {
log.info('Starting Core...')

const childProcess = fork(corePath, ['--json'], {
env: {
...process.env,
FIL_WALLET_ADDRESS: await wallet.getAddress(),
PASSPHRASE: await wallet.signMessage('station core passhprase'),
CACHE_ROOT: consts.CACHE_ROOT,
STATE_ROOT: consts.STATE_ROOT,
DEPLOYMENT_TYPE: 'station-desktop'
},
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
})
const childProcess = fork(
corePath,
['--json', '--recreateStationIdOnError'],
{
env: {
...process.env,
FIL_WALLET_ADDRESS: await wallet.getAddress(),
PASSPHRASE: await wallet.signMessage('station core passhprase'),
CACHE_ROOT: consts.CACHE_ROOT,
STATE_ROOT: consts.STATE_ROOT,
DEPLOYMENT_TYPE: 'station-desktop'
},
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
}
)
log.info(format('Core pid:', childProcess.pid))

assert(childProcess.stdout)
Expand Down

0 comments on commit 33b3918

Please sign in to comment.