Skip to content

Commit 18646d3

Browse files
committed
hackfix for weekly release
1 parent e52425a commit 18646d3

File tree

6 files changed

+72
-44
lines changed

6 files changed

+72
-44
lines changed

Cargo.lock

Lines changed: 41 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,22 @@ dotenvy = "0.15"
5252
ethers = { version = "2.0", features = ["solc"] }
5353
futures = "0.3"
5454

55-
hotshot = { git = "https://github.com/EspressoSystems/hotshot", tag = "0.5.68" }
55+
hotshot = { git = "https://github.com/EspressoSystems/hotshot", branch = "bump/0.5.69" }
5656
# Hotshot imports
57-
hotshot-builder-api = { git = "https://github.com/EspressoSystems/HotShot.git", tag = "0.5.68" }
58-
hotshot-builder-core = { git = "https://github.com/EspressoSystems/hotshot-builder-core", tag = "0.1.39" }
59-
marketplace-builder-core = { git = "https://github.com/EspressoSystems/marketplace-builder-core", tag = "0.0.2" }
60-
hotshot-events-service = { git = "https://github.com/EspressoSystems/hotshot-events-service.git", tag = "0.1.38" }
61-
hotshot-orchestrator = { git = "https://github.com/EspressoSystems/hotshot", tag = "0.5.68" }
62-
hotshot-query-service = { git = "https://github.com/EspressoSystems/hotshot-query-service", tag = "0.1.50" }
63-
hotshot-stake-table = { git = "https://github.com/EspressoSystems/hotshot", tag = "0.5.68" }
57+
hotshot-builder-api = { git = "https://github.com/EspressoSystems/HotShot.git", branch = "bump/0.5.69" }
58+
hotshot-builder-core = { git = "https://github.com/EspressoSystems/hotshot-builder-core", branch = "hotshot/rc-0.5.69" }
59+
marketplace-builder-core = { git = "https://github.com/EspressoSystems/marketplace-builder-core", branch = "hotshot/rc-0.5.69" }
60+
hotshot-events-service = { git = "https://github.com/EspressoSystems/hotshot-events-service.git", branch = "hotshot/rc-0.5.69" }
61+
hotshot-orchestrator = { git = "https://github.com/EspressoSystems/hotshot", branch = "bump/0.5.69" }
62+
hotshot-query-service = { git = "https://github.com/EspressoSystems/hotshot-query-service", branch = "hotshot/rc-0.5.69" }
63+
hotshot-stake-table = { git = "https://github.com/EspressoSystems/hotshot", branch = "bump/0.5.69" }
6464
hotshot-state-prover = { version = "0.1.0", path = "hotshot-state-prover" }
65-
hotshot-task = { git = "https://github.com/EspressoSystems/hotshot", tag = "0.5.68" }
66-
hotshot-testing = { git = "https://github.com/EspressoSystems/hotshot", tag = "0.5.68" }
67-
hotshot-types = { git = "https://github.com/EspressoSystems/hotshot", tag = "0.5.68" }
65+
hotshot-task = { git = "https://github.com/EspressoSystems/hotshot", branch = "bump/0.5.69" }
66+
hotshot-testing = { git = "https://github.com/EspressoSystems/hotshot", branch = "bump/0.5.69" }
67+
hotshot-types = { git = "https://github.com/EspressoSystems/hotshot", branch = "bump/0.5.69" }
6868
hotshot-contract-adapter = { version = "0.1.0", path = "contracts/rust/adapter" }
6969
# Temporary, used to pull in the mock auction results provider
70-
hotshot-example-types = { git = "https://github.com/EspressoSystems/hotshot", tag = "0.5.68" }
70+
hotshot-example-types = { git = "https://github.com/EspressoSystems/hotshot", branch = "bump/0.5.69" }
7171

7272
# Push CDN imports
7373
cdn-broker = { git = "https://github.com/EspressoSystems/Push-CDN", features = [

builder/src/permissioned.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use std::{
66
mem,
77
net::{IpAddr, Ipv4Addr},
88
num::NonZeroUsize,
9+
str::FromStr,
910
thread::Builder,
1011
time::Duration,
1112
};
@@ -46,7 +47,7 @@ use hotshot::{
4647
BlockPayload,
4748
},
4849
types::{SignatureKey, SystemContextHandle},
49-
HotShotInitializer, Memberships, SystemContext,
50+
HotShotInitializer, MarketplaceConfig, Memberships, SystemContext,
5051
};
5152
use hotshot_builder_api::v0_1::builder::{
5253
BuildError, Error as BuilderApiError, Options as HotshotBuilderApiOptions,
@@ -80,6 +81,7 @@ use hotshot_types::{
8081
light_client::StateKeyPair,
8182
signature_key::{BLSPrivKey, BLSPubKey},
8283
traits::{
84+
auction_results_provider::AuctionResultsProvider,
8385
block_contents::{vid_commitment, GENESIS_VID_NUM_STORAGE_NODES},
8486
election::Membership,
8587
metrics::Metrics,
@@ -384,7 +386,10 @@ pub async fn init_hotshot<
384386
.unwrap(),
385387
ConsensusMetricsValue::new(metrics),
386388
da_storage,
387-
TestAuctionResultsProvider::default(),
389+
MarketplaceConfig {
390+
auction_results_provider: Arc::new(TestAuctionResultsProvider::default()),
391+
generic_builder_url: Url::from_str("http://localhost").unwrap(),
392+
},
388393
)
389394
.await
390395
.unwrap()

sequencer/src/context.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ 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,
9192
_: Ver,
9293
) -> anyhow::Result<Self> {
9394
let config = &network_config.config;
@@ -150,7 +151,10 @@ impl<N: ConnectedNetwork<PubKey>, P: SequencerPersistence, Ver: StaticVersionTyp
150151
initializer,
151152
ConsensusMetricsValue::new(metrics),
152153
persistence.clone(),
153-
TestAuctionResultsProvider::default(),
154+
hotshot::MarketplaceConfig {
155+
auction_results_provider: Arc::new(TestAuctionResultsProvider::default()),
156+
generic_builder_url,
157+
},
154158
)
155159
.await?
156160
.0;

sequencer/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ pub mod state;
3131

3232
#[cfg(feature = "libp2p")]
3333
use std::time::Duration;
34-
use std::{collections::BTreeMap, fmt::Debug, marker::PhantomData, net::SocketAddr, sync::Arc};
34+
use std::{
35+
collections::BTreeMap, fmt::Debug, marker::PhantomData, net::SocketAddr, str::FromStr,
36+
sync::Arc,
37+
};
3538

3639
use derivative::Derivative;
3740
use espresso_types::v0::traits::{PersistenceOptions, SequencerPersistence};
@@ -404,6 +407,7 @@ pub async fn init_node<P: PersistenceOptions, Ver: StaticVersionType + 'static>(
404407
metrics,
405408
genesis.stake_table.capacity,
406409
network_params.public_api_url,
410+
Url::from_str("http://localhost").unwrap(),
407411
bind_version,
408412
)
409413
.await?;
@@ -752,6 +756,7 @@ pub mod testing {
752756
metrics,
753757
stake_table_capacity,
754758
None, // The public API URL
759+
Url::from_str("http://localhost").unwrap(),
755760
bind_version,
756761
)
757762
.await

types/src/v0/impls/header.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,7 @@ impl BlockHeader<SeqTypes> for Header {
738738
instance_state: &<<SeqTypes as NodeType>::ValidatedState as hotshot_types::traits::ValidatedState<SeqTypes>>::Instance,
739739
parent_leaf: &hotshot_types::data::Leaf<SeqTypes>,
740740
payload_commitment: VidCommitment,
741+
builder_commitment: BuilderCommitment,
741742
metadata: <<SeqTypes as NodeType>::BlockPayload as BlockPayload<SeqTypes>>::Metadata,
742743
builder_fee: Vec<BuilderFee<SeqTypes>>,
743744
_vid_common: VidCommon,

0 commit comments

Comments
 (0)