mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
chore(op/cli): Rm unused cli arg rollup.enable-genesis-walkback (#16824)
This commit is contained in:
@@ -51,7 +51,6 @@ For the sake of this tutorial, we'll use the reference implementation of the Rol
|
||||
op-reth supports additional OP Stack specific CLI arguments:
|
||||
1. `--rollup.sequencer-http <uri>` - The sequencer endpoint to connect to. Transactions sent to the `op-reth` EL are also forwarded to this sequencer endpoint for inclusion, as the sequencer is the entity that builds blocks on OP Stack chains.
|
||||
1. `--rollup.disable-tx-pool-gossip` - Disables gossiping of transactions in the mempool to peers. This can be omitted for personal nodes, though providers should always opt to enable this flag.
|
||||
1. `--rollup.enable-genesis-walkback` - Disables setting the forkchoice status to tip on startup, making the `op-node` walk back to genesis and verify the integrity of the chain before starting to sync. This can be omitted unless a corruption of local chainstate is suspected.
|
||||
1. `--rollup.discovery.v4` - Enables the discovery v4 protocol for peer discovery. By default, op-reth, similar to op-geth, has discovery v5 enabled and discovery v4 disabled, whereas regular reth has discovery v4 enabled and discovery v5 disabled.
|
||||
|
||||
First, ensure that your L1 archival node is running and synced to tip. Also make sure that the beacon node / consensus layer client is running and has http APIs enabled. Then, start `op-reth` with the `--rollup.sequencer-http` flag set to the `Base Mainnet` sequencer endpoint:
|
||||
|
||||
@@ -17,11 +17,6 @@ pub struct RollupArgs {
|
||||
#[arg(long = "rollup.disable-tx-pool-gossip")]
|
||||
pub disable_txpool_gossip: bool,
|
||||
|
||||
/// Enable walkback to genesis on startup. This is useful for re-validating the existing DB
|
||||
/// prior to beginning normal syncing.
|
||||
#[arg(long = "rollup.enable-genesis-walkback")]
|
||||
pub enable_genesis_walkback: bool,
|
||||
|
||||
/// By default the pending block equals the latest block
|
||||
/// to save resources and not leak txs from the tx-pool,
|
||||
/// this flag enables computing of the pending block
|
||||
@@ -70,7 +65,6 @@ impl Default for RollupArgs {
|
||||
Self {
|
||||
sequencer: None,
|
||||
disable_txpool_gossip: false,
|
||||
enable_genesis_walkback: false,
|
||||
compute_pending_block: false,
|
||||
discovery_v4: false,
|
||||
enable_tx_conditional: false,
|
||||
@@ -101,15 +95,6 @@ mod tests {
|
||||
assert_eq!(args, default_args);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_optimism_walkback_args() {
|
||||
let expected_args = RollupArgs { enable_genesis_walkback: true, ..Default::default() };
|
||||
let args =
|
||||
CommandParser::<RollupArgs>::parse_from(["reth", "--rollup.enable-genesis-walkback"])
|
||||
.args;
|
||||
assert_eq!(args, expected_args);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_optimism_compute_pending_block_args() {
|
||||
let expected_args = RollupArgs { compute_pending_block: true, ..Default::default() };
|
||||
@@ -162,7 +147,6 @@ mod tests {
|
||||
let expected_args = RollupArgs {
|
||||
disable_txpool_gossip: true,
|
||||
compute_pending_block: true,
|
||||
enable_genesis_walkback: true,
|
||||
enable_tx_conditional: true,
|
||||
sequencer: Some("http://host:port".into()),
|
||||
..Default::default()
|
||||
@@ -171,7 +155,6 @@ mod tests {
|
||||
"reth",
|
||||
"--rollup.disable-tx-pool-gossip",
|
||||
"--rollup.compute-pending-block",
|
||||
"--rollup.enable-genesis-walkback",
|
||||
"--rollup.enable-tx-conditional",
|
||||
"--rollup.sequencer-http",
|
||||
"http://host:port",
|
||||
|
||||
Reference in New Issue
Block a user