Skip to content

Commit 80d366c

Browse files
committed
config: adds flashbots endpoint env var
1 parent 27b4072 commit 80d366c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/config.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ pub struct BuilderConfig {
8989
)]
9090
pub tx_broadcast_urls: Vec<Cow<'static, str>>,
9191

92+
/// Flashbots endpoint for privately submitting rollup blocks.
93+
#[from_env(
94+
var = "FLASHBOTS_ENDPOINT",
95+
desc = "Flashbots endpoint for privately submitting rollup blocks",
96+
optional
97+
)]
98+
pub flashbots_endpoint: url::Url,
99+
92100
/// Address of the Zenith contract on Host.
93101
#[from_env(var = "ZENITH_ADDRESS", desc = "address of the Zenith contract on Host")]
94102
pub zenith_address: Address,

src/test_utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ pub fn setup_test_config() -> Result<BuilderConfig> {
3232
.try_into()
3333
.unwrap(),
3434
tx_broadcast_urls: vec!["http://localhost:9000".into()],
35+
flashbots_endpoint: "http://localhost:9062".parse().unwrap(), // NB: Flashbots API default
3536
zenith_address: Address::default(),
3637
quincey_url: "http://localhost:8080".into(),
3738
builder_port: 8080,

0 commit comments

Comments
 (0)