Skip to content

Commit

Permalink
nit: reorder items
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed Mar 2, 2024
1 parent a9df2bc commit fa3fbac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions ledger/narwhal/batch-certificate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ impl<N: Network> BatchCertificate<N> {
self.batch_header().round()
}

/// Returns the timestamp of the batch header.
pub fn timestamp(&self) -> i64 {
self.batch_header().timestamp()
}

/// Returns the committee ID.
pub const fn committee_id(&self) -> Field<N> {
self.batch_header().committee_id()
Expand All @@ -136,11 +141,6 @@ impl<N: Network> BatchCertificate<N> {
self.batch_header().previous_certificate_ids()
}

/// Returns the timestamp of the batch header.
pub fn timestamp(&self) -> i64 {
self.batch_header().timestamp()
}

/// Returns the signatures of the batch ID from the committee.
pub fn signatures(&self) -> Box<dyn '_ + ExactSizeIterator<Item = &Signature<N>>> {
Box::new(self.signatures.iter())
Expand Down
2 changes: 1 addition & 1 deletion ledger/narwhal/batch-header/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ impl<N: Network> BatchHeader<N> {
let signature = private_key.sign(&[batch_id], rng)?;
// Return the batch header.
Ok(Self {
author,
batch_id,
author,
round,
timestamp,
committee_id,
Expand Down

0 comments on commit fa3fbac

Please sign in to comment.