Working version Reviewed-on: #21
This commit was merged in pull request #21.
This commit is contained in:
2026-11-01 22:07:51 +00:00
parent 1edf2e6200
commit 636f5b9c77
80 changed files with 4065 additions and 549 deletions
+11 -1
View File
@@ -1,2 +1,12 @@
// A node independently validates RandomX work and follows cumulative-work consensus.
import './testnet/http.ts';
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');
}