Skip to content

Commit

Permalink
style: add some annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Eason committed Oct 30, 2023
1 parent 5861bab commit 2c7e255
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/consensus/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ pub fn time_now() -> u64 {
/// `keccak256` hash calculation at the end of each height. The reason why not
/// use address directly is that the `PeerId` is binding with public key not
/// address.
/// The `common_ref` do not affect the signature verification, it is a
/// placeholder.
pub struct OverlordCrypto {
private_key: BlsPrivateKey,
addr_pubkey: RwLock<HashMap<Bytes, BlsPublicKey>>,
Expand Down
1 change: 1 addition & 0 deletions core/run/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ fn init_crypto(
bls_pub_keys.insert(address, pub_key);
}

// The `common_ref` is a placeholder, use empty string.
let crypto = OverlordCrypto::new(bls_priv_key, bls_pub_keys, String::new());
Ok(Arc::new(crypto))
}
Expand Down

0 comments on commit 2c7e255

Please sign in to comment.