mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +00:00
Remove all prod eth1 related code (#7133)
N/A After the electra fork which includes EIP 6110, the beacon node no longer needs the eth1 bridging mechanism to include new deposits as they are provided by the EL as a `deposit_request`. So after electra + a transition period where the finalized bridge deposits pre-fork are included through the old mechanism, we no longer need the elaborate machinery we had to get deposit contract data from the execution layer. Since holesky has already forked to electra and completed the transition period, this PR basically checks to see if removing all the eth1 related logic leads to any surprises.
This commit is contained in:
@@ -702,54 +702,33 @@ pub fn cli_app() -> Command {
|
||||
/*
|
||||
* Eth1 Integration
|
||||
*/
|
||||
.arg(
|
||||
Arg::new("eth1")
|
||||
.long("eth1")
|
||||
.help("DEPRECATED")
|
||||
.action(ArgAction::SetTrue)
|
||||
.help_heading(FLAG_HEADER)
|
||||
.display_order(0)
|
||||
.hide(true)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("dummy-eth1")
|
||||
.long("dummy-eth1")
|
||||
.help("DEPRECATED")
|
||||
.action(ArgAction::SetTrue)
|
||||
.help_heading(FLAG_HEADER)
|
||||
.conflicts_with("eth1")
|
||||
.display_order(0)
|
||||
.hide(true)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("eth1-purge-cache")
|
||||
.long("eth1-purge-cache")
|
||||
.value_name("PURGE-CACHE")
|
||||
.help("Purges the eth1 block and deposit caches")
|
||||
.help("DEPRECATED")
|
||||
.action(ArgAction::SetTrue)
|
||||
.help_heading(FLAG_HEADER)
|
||||
.display_order(0)
|
||||
.hide(true)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("eth1-blocks-per-log-query")
|
||||
.long("eth1-blocks-per-log-query")
|
||||
.value_name("BLOCKS")
|
||||
.help("Specifies the number of blocks that a deposit log query should span. \
|
||||
This will reduce the size of responses from the Eth1 endpoint.")
|
||||
.default_value("1000")
|
||||
.help("DEPRECATED")
|
||||
.action(ArgAction::Set)
|
||||
.display_order(0)
|
||||
.hide(true)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("eth1-cache-follow-distance")
|
||||
.long("eth1-cache-follow-distance")
|
||||
.value_name("BLOCKS")
|
||||
.help("Specifies the distance between the Eth1 chain head and the last block which \
|
||||
should be imported into the cache. Setting this value lower can help \
|
||||
compensate for irregular Proof-of-Work block times, but setting it too low \
|
||||
can make the node vulnerable to re-orgs.")
|
||||
.help("DEPRECATED")
|
||||
.action(ArgAction::Set)
|
||||
.display_order(0)
|
||||
.hide(true)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("slots-per-restore-point")
|
||||
@@ -1513,13 +1492,12 @@ pub fn cli_app() -> Command {
|
||||
.arg(
|
||||
Arg::new("disable-deposit-contract-sync")
|
||||
.long("disable-deposit-contract-sync")
|
||||
.help("Explicitly disables syncing of deposit logs from the execution node. \
|
||||
This overrides any previous option that depends on it. \
|
||||
Useful if you intend to run a non-validating beacon node.")
|
||||
.help("DEPRECATED")
|
||||
.action(ArgAction::SetTrue)
|
||||
.help_heading(FLAG_HEADER)
|
||||
.conflicts_with("staking")
|
||||
.display_order(0)
|
||||
.hide(true)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("disable-optimistic-finalized-sync")
|
||||
|
||||
Reference in New Issue
Block a user