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

Optional VID compute field #2631

Merged
merged 3 commits into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions hotshot-builder-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ derive_more = { workspace = true, features = ["from"] }
futures = { workspace = true }
hotshot-types = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tagged-base64 = { workspace = true }
thiserror = { workspace = true }
tide-disco = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions hotshot-builder-api/src/v0_1/block_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ impl<TYPES: NodeType> AvailableBlockData<TYPES> {
#[serde(bound = "")]
pub struct AvailableBlockHeaderInput<TYPES: NodeType> {
pub vid_commitment: VidCommitment,
#[serde(default)]
pub vid_precompute_data: Option<serde_json::Value>,
// signature over vid_commitment, BlockPayload::Metadata, and offered_fee
pub fee_signature:
<<TYPES as NodeType>::BuilderSignatureKey as BuilderSignatureKey>::BuilderSignature,
Expand Down
1 change: 1 addition & 0 deletions hotshot-builder-core-refactored/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ where

let response = AvailableBlockHeaderInput::<Types> {
vid_commitment,
vid_precompute_data: None,
fee_signature: signature_over_fee_info,
message_signature: signature_over_vid_commitment,
sender: self.builder_keys.0.clone(),
Expand Down
1 change: 1 addition & 0 deletions hotshot-builder-core/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,7 @@ impl<Types: NodeType> ProxyGlobalState<Types> {

let response = AvailableBlockHeaderInput::<Types> {
vid_commitment,
vid_precompute_data: None,
fee_signature: signature_over_fee_info,
message_signature: signature_over_vid_commitment,
sender: pub_key.clone(),
Expand Down
1 change: 1 addition & 0 deletions hotshot-testing/src/block_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ where
};
let header_input = AvailableBlockHeaderInput {
vid_commitment,
vid_precompute_data: None,
message_signature: signature_over_vid_commitment.clone(),
fee_signature: signature_over_fee_info,
sender: pub_key,
Expand Down
1 change: 1 addition & 0 deletions sequencer-sqlite/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading