Security
This commit is contained in:
+5
-1
@@ -1,7 +1,11 @@
|
||||
// A node independently validates RandomX work and follows cumulative-work consensus.
|
||||
import { assertLaunchAllowed, launchManifest } from './launch.ts';
|
||||
import { launchPreflight } from './preflight.ts';
|
||||
|
||||
if (process.argv.includes('--network-manifest')) console.log(JSON.stringify(launchManifest(), null, 2));
|
||||
if (process.argv.includes('--launch-preflight')) {
|
||||
console.log(JSON.stringify(launchPreflight(), null, 2));
|
||||
process.exitCode = 1; // Fail closed: a report with unresolved production blockers is never approval.
|
||||
} else if (process.argv.includes('--network-manifest')) console.log(JSON.stringify(launchManifest(), null, 2));
|
||||
else {
|
||||
assertLaunchAllowed();
|
||||
await import('./testnet/http.ts');
|
||||
|
||||
Reference in New Issue
Block a user