Mainnet
This commit is contained in:
Executable
+10
@@ -0,0 +1,10 @@
|
||||
import { spawn } from 'node:child_process';
|
||||
|
||||
const env = { ...process.env, WIKIDECK_NETWORK: 'testnet', WIKIDECK_GENESIS_TIME: '1792411200' };
|
||||
const child = spawn(process.execPath, ['--import', 'tsx', 'server/testnet/miner.ts', ...process.argv.slice(2)], {
|
||||
env, stdio: 'inherit', shell: false,
|
||||
});
|
||||
child.once('error', () => { process.exitCode = 1; });
|
||||
child.once('exit', (code, signal) => {
|
||||
process.exitCode = code ?? (signal ? 1 : 0);
|
||||
});
|
||||
Reference in New Issue
Block a user