Skip to content

Commit 24cdd08

Browse files
committed
update genesis-to-chainspec converter
1 parent 3deb7b5 commit 24cdd08

4 files changed

Lines changed: 554 additions & 182 deletions

File tree

‎container-manager/src/gen/gen_env.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ STATS_SECRET=${config.secret_string}
4040
PORT=${port}
4141
RPCPORT=${rpcport}
4242
WSPORT=${wsport}
43-
LOG_LEVEL=2
43+
LOG_LEVEL=4
4444
`;
4545

4646
return config_env;
@@ -62,7 +62,7 @@ NETHERMIND_JSONRPCCONFIG_PORT=${rpcport}
6262
NETHERMIND_NETWORKCONFIG_P2PPORT=${port}
6363
NETHERMIND_NETWORKCONFIG_DISCOVERYPORT=${port}
6464
NETHERMIND_NETWORKCONFIG_EXTERNALIP=${ip}
65-
NETHERMIND_NETWORKCONFIG_FILTERPEERSBYRECENTIP=false
65+
NETHERMIND_NETWORKCONFIG_FILTERPEERSBYRECENTIP=true
6666
NETHERMIND_NETWORKCONFIG_BOOTNODES=${bootnodeEnode(ip_record)}
6767
NETHERMIND_INITCONFIG_DISCOVERYENABLED=true
6868
NETHERMIND_MININGCONFIG_ENABLED=true

‎container-manager/src/libs/check-chainspec.js‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
* translates to. Pass --dry-run to report without touching anything.
1313
*
1414
* Usage:
15-
* node check-chainspec.js <genesis.json> <chainspec.json> [--dry-run] [--name <name>] [--base-fee <0x..>]
15+
* node check-chainspec.js <genesis.json> <chainspec.json> [--dry-run] [--name <name>]
1616
*
17-
* Both paths are required; there are no defaults. Pass --name / --base-fee when
18-
* the chainspec was produced with those flags, otherwise the translator defaults
19-
* are used (which is what the deployment pipeline does).
17+
* Both paths are required; there are no defaults. Pass --name when the chainspec
18+
* was produced with that flag, otherwise the translator defaults are used (which
19+
* is what the deployment pipeline does).
2020
*
2121
* Exit codes:
2222
* 0 chainspec.json already matches genesis.json, nothing was touched
@@ -162,7 +162,7 @@ function replaceChainspec(chainspecPath, expected, date) {
162162
* ------------------------------------------------------------------ */
163163

164164
const USAGE =
165-
'Usage: node check-chainspec.js <genesis.json> <chainspec.json> [--subnet] [--dry-run] [--name <name>] [--base-fee <0x..>]\n' +
165+
'Usage: node check-chainspec.js <genesis.json> <chainspec.json> [--subnet] [--dry-run] [--name <name>]\n' +
166166
'--subnet must match how the chainspec was generated (engine XDPoSSubnet vs\n' +
167167
'XDPoS), otherwise the engine block alone reads as a difference.\n' +
168168
'Both paths are required. A differing chainspec is archived and replaced,\n' +
@@ -189,8 +189,6 @@ function main(argv) {
189189
for (let i = 0; i < args.length; i++) {
190190
if (args[i] === '--name') {
191191
opts.name = args[++i];
192-
} else if (args[i] === '--base-fee') {
193-
opts.baseFeePerGas = args[++i];
194192
} else if (args[i] === '--subnet') {
195193
opts.subnet = true;
196194
} else if (args[i] === '--dry-run') {

0 commit comments

Comments
 (0)