// 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('--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'); }