From 0edb278d2534a3d2a19a2e2004e2358fe67ad14d Mon Sep 17 00:00:00 2001 From: refcell Date: Mon, 31 Jul 2023 15:16:25 +0000 Subject: [PATCH 1/2] Compute Pending Block rollup arg --- bin/reth/src/args/rollup_args.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/reth/src/args/rollup_args.rs b/bin/reth/src/args/rollup_args.rs index 887d04a1046..dc482bcd759 100644 --- a/bin/reth/src/args/rollup_args.rs +++ b/bin/reth/src/args/rollup_args.rs @@ -11,4 +11,11 @@ pub struct RollupArgs { /// Disable transaction pool gossip #[arg(long = "rollup.disable-tx-pool-gossip")] pub disable_txpool_gossip: 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 + /// from the tx-pool instead. + #[arg(long = "rollup.compute-pending-block"))] + pub compute_pending_block: bool, } From b042e6fd192bb9f54f16d46b23c89baa25f8732b Mon Sep 17 00:00:00 2001 From: "refcell.eth" Date: Tue, 1 Aug 2023 19:48:44 -0400 Subject: [PATCH 2/2] Update bin/reth/src/args/rollup_args.rs Co-authored-by: nicolas <48695862+merklefruit@users.noreply.github.com> --- bin/reth/src/args/rollup_args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/reth/src/args/rollup_args.rs b/bin/reth/src/args/rollup_args.rs index dc482bcd759..793396c2f0d 100644 --- a/bin/reth/src/args/rollup_args.rs +++ b/bin/reth/src/args/rollup_args.rs @@ -16,6 +16,6 @@ pub struct RollupArgs { /// to save resources and not leak txs from the tx-pool, /// this flag enables computing of the pending block /// from the tx-pool instead. - #[arg(long = "rollup.compute-pending-block"))] + #[arg(long = "rollup.compute-pending-block")] pub compute_pending_block: bool, }