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

feat: update did for chunk certification #313

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions ic-utils/src/interfaces/http_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ pub struct StreamingCallbackHttpResponse<Token = self::Token> {
pub body: Vec<u8>,
/// The new stream continuation token.
pub token: Option<Token>,
/// chunk witness tree.
pub chunk_tree: Option<Vec<u8>>,
}

/// A token for continuing a callback streaming strategy.
Expand Down Expand Up @@ -298,6 +300,7 @@ mod test {
index: 42.into(),
sha256: None,
}),
chunk_tree: None,
})
.unwrap();

Expand Down Expand Up @@ -349,6 +352,7 @@ mod test {
let bytes: Vec<u8> = Encode!(&StreamingCallbackHttpResponse {
body: b"this is a body".as_ref().into(),
token: Option::<pre_update_legacy::Token>::None,
chunk_tree: None,
})
.unwrap();

Expand Down