6af3f606a2
- Fix docker-compose.yml p2p port mappings (30304:30303, 30305:30303) - Fix typo BESUS_GENESIS_FILE -> BESU_GENESIS_FILE - Add missing volumes/environment to validator2 and validator3 services - Remove outdated package-lock.json to let CI regenerate cleanly - Validate genesis determinism and extraData alignment Co-Authored-By: Paperclip <noreply@paperclip.ing>
24 lines
689 B
JavaScript
Executable File
24 lines
689 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
/**
|
|
* generate-devnet-config.js — deterministic devnet config generator
|
|
*
|
|
* Thin wrapper that delegates to generate-static-keys-run.js so there is one
|
|
* source of truth for key derivation, genesis construction, and extraData RLP
|
|
* encoding.
|
|
*
|
|
* Usage:
|
|
* node scripts/generate-devnet-config.js [outDir]
|
|
*/
|
|
const { spawnSync } = require('child_process');
|
|
const path = require('path');
|
|
|
|
const outDir = process.argv[2] || path.join(__dirname, '..', 'devnet');
|
|
|
|
const script = path.join(__dirname, 'generate-static-keys-run.js');
|
|
const result = spawnSync('node', [script, outDir], {
|
|
stdio: 'inherit',
|
|
env: process.env
|
|
});
|
|
|
|
process.exit(result.status || 0);
|