Altair config for mainnet

This still doesn't work properly because it leads to a change in
the "eth" ENR field of the client. Since the client uses the value
of this field to look for other nodes on the network, the change
effectively prevents us from finding peers.
This commit is contained in:
Zahary Karadjov 2021-09-29 01:48:08 +03:00 committed by zah
parent 4743807079
commit cc5d85331b
2 changed files with 7 additions and 2 deletions

View File

@ -144,6 +144,10 @@ const
"CONFIG_NAME",
# Merge-related settings that are already part of the mainnet config:
"TERMINAL_TOTAL_DIFFICULTY",
"TERMINAL_BLOCK_HASH",
"TRANSITION_TOTAL_DIFFICULTY", # Name that appears in some altair alphas, obsolete, remove when no more testnets
]
@ -386,7 +390,8 @@ proc readRuntimeConfig*(
for line in splitLines(readFile(path)):
inc lineNum
if line.len == 0 or line[0] == '#': continue
# remove any trailing comments
let line = line.split("#")[0]
var lineParts = line.split(":")
if lineParts.len != 2:
fail "Invalid syntax: A preset file should include only assignments in the form 'ConstName: Value'"

@ -1 +1 @@
Subproject commit c5f078390730998e468d2b66e21728aeef432bef
Subproject commit e14cfc658fcde662d08ba5cf50f263fca7421eba