Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WEEKLY RELEASE] Bump HotShot #2344

Merged
merged 55 commits into from
Dec 6, 2024
Merged

[WEEKLY RELEASE] Bump HotShot #2344

merged 55 commits into from
Dec 6, 2024

Conversation

QuentinI
Copy link
Contributor

@QuentinI QuentinI commented Dec 2, 2024

  • Updates HotShot with epoch related changes, incleading new Leaf2 and QuorumProposal2 types.
  • Moves the Marketplace upgrade to version 0.99 to make room for the Epoch upgrade which will be carried out first.

},
},
) {
if let Err(err) = consensus.update_leaf(leaf, Arc::clone(&state), delta) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update_saved_leaves and update_validated_state_map are now private. I figured update_leaf should cover the need for both of those

@@ -498,6 +503,7 @@ pub trait SequencerPersistence: Sized + Send + Sync + 'static {
// starting in a view in which we had already voted before the restart, and prevents
// unnecessary catchup from starting in a view earlier than the anchor leaf.
let view = max(highest_voted_view, leaf.view_number());
let epoch = todo!();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea where this should come from. I'd expect there to be Leaf2::epoch_number(), but that's not a thing.

@sveitser sveitser self-requested a review December 5, 2024 13:42
Copy link
Collaborator

@sveitser sveitser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks okay now. Since many collaborated should have more than a single approval though.

Cargo.toml Outdated
hotshot-query-service = { git = "https://github.com/EspressoSystems/hotshot-query-service", tag = "0.1.74" }
hotshot-stake-table = { git = "https://github.com/EspressoSystems/hotshot", tag = "0.5.81" }
hotshot-builder-api = { git = "https://github.com/EspressoSystems/hotshot", tag = "rc-0.5.82" }
hotshot-builder-core = { git = "https://github.com/EspressoSystems/marketplace-builder-core", branch = "hotshot/0.5.82" }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

point to tag?

Copy link
Contributor

@ss-es ss-es left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good on the whole, just left some comments

node-metrics/src/service/client_state/mod.rs Outdated Show resolved Hide resolved
sequencer/src/api.rs Show resolved Hide resolved
@@ -1265,22 +1249,26 @@ mod api_tests {
&ValidatedState::default(),
&NodeState::mock(),
)
.await,
.await
.to_qc2(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here too

sequencer/src/api/sql.rs Show resolved Hide resolved
sequencer/src/context.rs Show resolved Hide resolved
sequencer/src/persistence.rs Outdated Show resolved Hide resolved
sequencer/src/persistence.rs Show resolved Hide resolved
sequencer/src/persistence.rs Outdated Show resolved Hide resolved
@QuentinI QuentinI merged commit 4a09be2 into main Dec 6, 2024
23 checks passed
@QuentinI QuentinI deleted the hotshot/0.5.82 branch December 6, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants