Skip to content

Commit 4631fff

Browse files
committed
Merge branch 'hotshot/rc-0.5.69' of github.com:EspressoSystems/espresso-sequencer into hotshot/rc-0.5.69
2 parents 6388165 + f997987 commit 4631fff

File tree

5 files changed

+11
-17
lines changed

5 files changed

+11
-17
lines changed

sequencer/src/context.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ impl<N: ConnectedNetwork<PubKey>, P: SequencerPersistence, Ver: StaticVersionTyp
8888
metrics: &dyn Metrics,
8989
stake_table_capacity: u64,
9090
public_api_url: Option<Url>,
91-
generic_builder_url: Url,
9291
_: Ver,
9392
marketplace_config: MarketplaceConfig<SeqTypes, Node<N, P>>,
9493
) -> anyhow::Result<Self> {

sequencer/src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ pub mod state;
3333

3434
#[cfg(feature = "libp2p")]
3535
use std::time::Duration;
36-
use std::{
37-
collections::BTreeMap, fmt::Debug, marker::PhantomData, net::SocketAddr, str::FromStr,
38-
sync::Arc,
39-
};
36+
use std::{collections::BTreeMap, fmt::Debug, marker::PhantomData, net::SocketAddr, sync::Arc};
4037

4138
use derivative::Derivative;
4239
use espresso_types::v0::traits::{PersistenceOptions, SequencerPersistence};
@@ -411,7 +408,6 @@ pub async fn init_node<P: PersistenceOptions, Ver: StaticVersionType + 'static>(
411408
metrics,
412409
genesis.stake_table.capacity,
413410
network_params.public_api_url,
414-
Url::from_str("http://localhost").unwrap(),
415411
bind_version,
416412
marketplace_config,
417413
)
@@ -761,7 +757,6 @@ pub mod testing {
761757
metrics,
762758
stake_table_capacity,
763759
None, // The public API URL
764-
Url::from_str("http://localhost").unwrap(),
765760
bind_version,
766761
MarketplaceConfig::<SeqTypes, Node<network::Memory, P::Persistence>> {
767762
auction_results_provider: Arc::new(SolverAuctionResultsProvider(

sequencer/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ where
102102
auction_results_provider: Arc::new(SolverAuctionResultsProvider(
103103
opt.auction_results_solver_url,
104104
)),
105-
fallback_builder_url: opt.generic_builder_url,
105+
fallback_builder_url: opt.fallback_builder_url,
106106
};
107107

108108
// Initialize HotShot. If the user requested the HTTP module, we must initialize the handle in

sequencer/src/options.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ pub struct Options {
116116
/// URL of generic builder
117117
#[clap(
118118
long,
119-
env = "ESPRESSO_GENERIC_BUILDER_URL",
119+
env = "ESPRESSO_FALLBACK_BUILDER_URL",
120120
default_value = "http://localhost:31004"
121121
)]
122122
#[derivative(Debug(format_with = "Display::fmt"))]
123-
pub generic_builder_url: Url,
123+
pub fallback_builder_url: Url,
124124

125125
/// Path to TOML file containing genesis state.
126126
#[clap(

types/src/v0/impls/header.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ impl Header {
343343
#[allow(clippy::too_many_arguments)]
344344
fn from_info(
345345
payload_commitment: VidCommitment,
346-
builder_commitment: Option<BuilderCommitment>,
346+
builder_commitment: BuilderCommitment,
347347
ns_table: NsTable,
348348
parent_leaf: &Leaf,
349349
mut l1: L1Snapshot,
@@ -470,7 +470,7 @@ impl Header {
470470
l1_head: l1.head,
471471
l1_finalized: l1.finalized,
472472
payload_commitment,
473-
builder_commitment: builder_commitment.unwrap(),
473+
builder_commitment,
474474
ns_table,
475475
block_merkle_tree_root,
476476
fee_merkle_tree_root,
@@ -486,7 +486,7 @@ impl Header {
486486
l1_head: l1.head,
487487
l1_finalized: l1.finalized,
488488
payload_commitment,
489-
builder_commitment: builder_commitment.unwrap(),
489+
builder_commitment,
490490
ns_table,
491491
block_merkle_tree_root,
492492
fee_merkle_tree_root,
@@ -500,7 +500,7 @@ impl Header {
500500
l1_head: l1.head,
501501
l1_finalized: l1.finalized,
502502
payload_commitment,
503-
builder_commitment: builder_commitment.unwrap(),
503+
builder_commitment,
504504
ns_table,
505505
block_merkle_tree_root,
506506
fee_merkle_tree_root,
@@ -836,7 +836,7 @@ impl BlockHeader<SeqTypes> for Header {
836836

837837
Ok(Self::from_info(
838838
payload_commitment,
839-
None,
839+
builder_commitment,
840840
metadata,
841841
parent_leaf,
842842
l1_snapshot,
@@ -952,7 +952,7 @@ impl BlockHeader<SeqTypes> for Header {
952952

953953
Ok(Self::from_info(
954954
payload_commitment,
955-
Some(builder_commitment),
955+
builder_commitment,
956956
metadata,
957957
parent_leaf,
958958
l1_snapshot,
@@ -1154,7 +1154,7 @@ mod test_headers {
11541154

11551155
let header = Header::from_info(
11561156
genesis.header.payload_commitment(),
1157-
Some(genesis.header.builder_commitment().clone()),
1157+
genesis.header.builder_commitment().clone(),
11581158
genesis.ns_table,
11591159
&parent_leaf,
11601160
L1Snapshot {

0 commit comments

Comments
 (0)