Skip to content

Commit 1e91695

Browse files
committed
mirror_worker: correct the committed-checkpoint doc comment
CommittedCheckpoint.signed_note_bytes stores the served checkpoint (the log's signed note with the mirror's cosignature appended), not the log's original note, so describe it that way.
1 parent 6f84127 commit 1e91695

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

crates/mirror_worker/src/mirror_state_do.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ pub struct CommittedCheckpoint {
7575
/// Root hash. All-zero if `size` is 0.
7676
#[serde(with = "hash_hex")]
7777
pub hash: Hash,
78-
/// Full signed-note bytes as the log signed them, empty if `size` is
79-
/// 0. Served with the mirror's cosignature lines appended.
78+
/// The served checkpoint bytes: the log's signed note with the
79+
/// mirror's cosignature line(s) appended, exactly as written to R2.
80+
/// Empty if `size` is 0.
8081
#[serde_as(as = "Base64As")]
8182
pub signed_note_bytes: Vec<u8>,
8283
}

0 commit comments

Comments
 (0)