Skip to content

Commit 3fd0da4

Browse files
committed
Add more cli flags
1 parent cbebce8 commit 3fd0da4

File tree

2 files changed

+54
-41
lines changed

2 files changed

+54
-41
lines changed

Cargo.lock

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ struct BuilderConfig {
4848
requires("empty-payloads")
4949
)]
5050
default_fee_recipient: Option<Address>,
51+
#[clap(
52+
long,
53+
help = "Builder always returns a bid with value set to max",
54+
default_value_t = false
55+
)]
56+
set_max_bid_value: bool,
57+
#[clap(
58+
long,
59+
help = "If set to true, builder will return a bid even for non registered validators",
60+
default_value_t = false
61+
)]
62+
allow_unregistered_validators: bool,
5163
}
5264

5365
#[instrument]
@@ -124,8 +136,9 @@ async fn main() -> Result<(), String> {
124136
let mock_builder = execution_layer::test_utils::MockBuilder::new(
125137
el,
126138
beacon_client.clone(),
139+
builder_config.allow_unregistered_validators,
127140
false,
128-
false,
141+
builder_config.set_max_bid_value,
129142
spec.clone(),
130143
log_root,
131144
);

0 commit comments

Comments
 (0)