Skip to content

Commit 241e766

Browse files
committed
delete builder server
1 parent 375d976 commit 241e766

File tree

8 files changed

+0
-199
lines changed

8 files changed

+0
-199
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ HOST_RPC_URL="http://host.url.here"
2525
TX_BROADCAST_URLS="http://tx.broadcast.url.here/,https://additional.url.here/"
2626
ZENITH_ADDRESS="ZENITH_ADDRESS_HERE"
2727
QUINCEY_URL="http://signer.url.here"
28-
BUILDER_PORT="8080"
2928
BUILDER_KEY="YOUR_BUILDER_KEY_HERE"
3029
INCOMING_TRANSACTIONS_BUFFER="10"
3130
BLOCK_CONFIRMATION_BUFFER="10"

bin/builder.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![allow(dead_code)]
22

33
use builder::config::BuilderConfig;
4-
use builder::service::serve_builder_with_span;
54
use builder::tasks::bundler::BundlePoller;
65
use builder::tasks::oauth::Authenticator;
76
use builder::tasks::tx_poller::TxPoller;
@@ -21,8 +20,6 @@ async fn main() -> eyre::Result<()> {
2120

2221
let sequencer_signer = config.connect_sequencer_signer().await?;
2322
let zenith = config.connect_zenith(provider.clone());
24-
25-
let port = config.builder_port;
2623
let tx_poller = TxPoller::new(&config);
2724
let bundle_poller = BundlePoller::new(&config, authenticator.clone()).await;
2825
let builder = builder::tasks::block::BlockBuilder::new(&config);
@@ -42,18 +39,13 @@ async fn main() -> eyre::Result<()> {
4239
let tx_poller_jh = tx_poller.spawn(tx_channel.clone());
4340
let bundle_poller_jh = bundle_poller.spawn(bundle_channel);
4441

45-
let server = serve_builder_with_span(tx_channel, ([0, 0, 0, 0], port), span);
46-
4742
select! {
4843
_ = submit_jh => {
4944
tracing::info!("submit finished");
5045
},
5146
_ = build_jh => {
5247
tracing::info!("build finished");
5348
}
54-
_ = server => {
55-
tracing::info!("server finished");
56-
}
5749
_ = tx_poller_jh => {
5850
tracing::info!("tx_poller finished");
5951
}

src/config.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const HOST_RPC_URL: &str = "HOST_RPC_URL";
1717
const TX_BROADCAST_URLS: &str = "TX_BROADCAST_URLS";
1818
const ZENITH_ADDRESS: &str = "ZENITH_ADDRESS";
1919
const QUINCEY_URL: &str = "QUINCEY_URL";
20-
const BUILDER_PORT: &str = "BUILDER_PORT";
2120
const SEQUENCER_KEY: &str = "SEQUENCER_KEY"; // empty (to use Quincey) OR AWS key ID (to use AWS signer) OR raw private key (to use local signer)
2221
const BUILDER_KEY: &str = "BUILDER_KEY"; // AWS key ID (to use AWS signer) OR raw private key (to use local signer)
2322
const INCOMING_TRANSACTIONS_BUFFER: &str = "INCOMING_TRANSACTIONS_BUFFER";
@@ -51,8 +50,6 @@ pub struct BuilderConfig {
5150
/// URL for remote Quincey Sequencer server to sign blocks.
5251
/// Disregarded if a sequencer_signer is configured.
5352
pub quincey_url: Cow<'static, str>,
54-
/// Port for the Builder server.
55-
pub builder_port: u16,
5653
/// Key to access Sequencer Wallet - AWS Key ID _OR_ local private key.
5754
/// Set IFF using local Sequencer signing instead of remote Quincey signing.
5855
pub sequencer_key: Option<String>,
@@ -147,7 +144,6 @@ impl BuilderConfig {
147144
.collect(),
148145
zenith_address: load_address(ZENITH_ADDRESS)?,
149146
quincey_url: load_url(QUINCEY_URL)?,
150-
builder_port: load_u16(BUILDER_PORT)?,
151147
sequencer_key: load_string_option(SEQUENCER_KEY),
152148
builder_key: load_string(BUILDER_KEY)?,
153149
incoming_transactions_buffer: load_u64(INCOMING_TRANSACTIONS_BUFFER)?,

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
pub mod config;
2-
pub mod service;
32
pub mod signer;
43
pub mod tasks;

src/service.rs

Lines changed: 0 additions & 182 deletions
This file was deleted.

src/tasks/oauth.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ mod tests {
142142
host_rpc_url: "http://rpc.holesky.signet.sh".into(),
143143
zenith_address: Address::default(),
144144
quincey_url: "http://localhost:8080".into(),
145-
builder_port: 8080,
146145
sequencer_key: None,
147146
builder_key: "0000000000000000000000000000000000000000000000000000000000000000".into(),
148147
incoming_transactions_buffer: 1,

tests/bundle_poller_test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ mod tests {
2626
host_rpc_url: "http://rpc.holesky.signet.sh".into(),
2727
zenith_address: Address::default(),
2828
quincey_url: "http://localhost:8080".into(),
29-
builder_port: 8080,
3029
sequencer_key: None,
3130
builder_key: "0000000000000000000000000000000000000000000000000000000000000000".into(),
3231
incoming_transactions_buffer: 1,

tests/tx_poller_test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ mod tests {
7171
tx_broadcast_urls: vec!["http://localhost:9000".into()],
7272
zenith_address: Address::default(),
7373
quincey_url: "http://localhost:8080".into(),
74-
builder_port: 8080,
7574
sequencer_key: None,
7675
builder_key: "0000000000000000000000000000000000000000000000000000000000000000".into(),
7776
incoming_transactions_buffer: 1,

0 commit comments

Comments
 (0)