Skip to content

Commit 655fa22

Browse files
committed
config: adds flashbots endpoint env var
1 parent 6b626f4 commit 655fa22

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
@@ -92,6 +92,14 @@ pub struct BuilderConfig {
9292
)]
9393
pub tx_broadcast_urls: Vec<Cow<'static, str>>,
9494

95+
/// Flashbots endpoint for privately submitting rollup blocks.
96+
#[from_env(
97+
var = "FLASHBOTS_ENDPOINT",
98+
desc = "Flashbots endpoint for privately submitting rollup blocks",
99+
optional
100+
)]
101+
pub flashbots_endpoint: url::Url,
102+
95103
/// Address of the Zenith contract on Host.
96104
#[from_env(var = "ZENITH_ADDRESS", desc = "address of the Zenith contract on Host")]
97105
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)