Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
itamarreif committed Oct 28, 2024
1 parent af9be10 commit 780c5d4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
10 changes: 7 additions & 3 deletions crates/astria-auctioneer/src/auctioneer/inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ impl Auctioneer {
) -> eyre::Result<Self> {
let Config {
sequencer_grpc_endpoint,
sequencer_abci_endpoint,
latency_margin_ms,
rollup_grpc_endpoint,
rollup_id,
..
} = cfg;
Expand All @@ -57,10 +60,11 @@ impl Auctioneer {
metrics,
shutdown_token: shutdown_token.clone(),
sequencer_grpc_endpoint,
sequencer_abci_endpoint,
rollup_id,
optimistic_execution_grpc_endpoint: todo!(),
bundle_grpc_endpoint: todo!(),
latency_margin: todo!(),
optimistic_execution_grpc_endpoint: rollup_grpc_endpoint.clone(),
bundle_grpc_endpoint: rollup_grpc_endpoint.clone(),
latency_margin: Duration::from_millis(latency_margin_ms),
}
.build()
.wrap_err("failed to initialize the optimistic executor")?;
Expand Down
9 changes: 9 additions & 0 deletions crates/astria-auctioneer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ pub struct Config {
pub pretty_print: bool,
/// The endpoint for the sequencer gRPC service used for the optimistic block stream
pub sequencer_grpc_endpoint: String,
/// The endpoint for the sequencer ABCI service used for submitting the auction winner
/// transaction
pub sequencer_abci_endpoint: String,
/// The amount of time in miliseconds to wait after a commit before closing the auction for
/// bids and submitting the result to the sequencer.
pub latency_margin_ms: u64,
/// The endpoint for the rollup gRPC service used for the optimistic execution and bundle
/// streams
pub rollup_grpc_endpoint: String,
/// The rollup ID used to filter the optimistic blocks stream
pub rollup_id: String,
}
Expand Down
4 changes: 4 additions & 0 deletions crates/astria-auctioneer/src/optimistic_executor/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ pub(crate) struct Builder {
pub(crate) shutdown_token: CancellationToken,
/// The endpoint for the sequencer gRPC service used for the optimistic block stream
pub(crate) sequencer_grpc_endpoint: String,
/// The endpoint for the sequencer ABCI service used to submit the auction winner transaction
pub(crate) sequencer_abci_endpoint: String,
/// The rollup ID for the filtered optimistic block stream
pub(crate) rollup_id: String,
/// The endpoint for the rollup's optimistic execution gRPC service
Expand All @@ -28,6 +30,7 @@ impl Builder {
metrics,
shutdown_token,
sequencer_grpc_endpoint,
sequencer_abci_endpoint,
rollup_id,
optimistic_execution_grpc_endpoint,
bundle_grpc_endpoint,
Expand All @@ -40,6 +43,7 @@ impl Builder {
metrics,
shutdown_token,
sequencer_grpc_endpoint,
sequencer_abci_endpoint,
rollup_id,
optimistic_execution_grpc_endpoint,
bundle_grpc_endpoint,
Expand Down

0 comments on commit 780c5d4

Please sign in to comment.