Skip to content
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 finalizer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ alloy-eips.workspace = true
alloy-primitives.workspace = true
alloy-rpc-types-engine.workspace = true
bytes.workspace = true
ethereum_ssz.workspace = true
futures.workspace = true
governor.workspace = true
rand.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions finalizer/src/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{
os::unix::net::UnixStream,
};

use commonware_codec::Encode as _;
use ssz::Encode;
use summit_types::checkpoint::Checkpoint;
use tracing::info;

Expand All @@ -21,7 +21,7 @@ pub(crate) fn backup_with_enclave(epoch: u64, checkpoint: Checkpoint) -> std::io
// wait for ack
wait_for_ack(&mut stream)?;
// send checkpoint length
let checkpoint_bytes = checkpoint.encode();
let checkpoint_bytes = checkpoint.as_ssz_bytes();

let len = checkpoint_bytes.len() as u32;
stream.write_all(&len.to_le_bytes())?;
Expand Down