9 lines
336 B
TypeScript
9 lines
336 B
TypeScript
// A node independently validates RandomX work and follows cumulative-work consensus.
|
|
import { assertLaunchAllowed, launchManifest } from './launch.ts';
|
|
|
|
if (process.argv.includes('--network-manifest')) console.log(JSON.stringify(launchManifest(), null, 2));
|
|
else {
|
|
assertLaunchAllowed();
|
|
await import('./testnet/http.ts');
|
|
}
|