Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
chore: fix some typos
Browse files Browse the repository at this point in the history
Signed-off-by: yangquanshi <[email protected]>
  • Loading branch information
yangquanshi committed Jan 5, 2025
1 parent 3a9902e commit 9194f3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions slashing/program/src/duplicate_block_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl<'a> SlashingProofData<'a> for DuplicateBlockProofData<'a> {
fn verify_proof(self, slot: Slot, _node_pubkey: &Pubkey) -> Result<(), SlashingError> {
// TODO: verify through instruction inspection that the shreds were sigverified
// earlier in this transaction.
// Ed25519 Singature verification is performed on the merkle root:
// Ed25519 Signature verification is performed on the merkle root:
// node_pubkey.verify_strict(merkle_root, signature).
// We will verify that the pubkey merkle root and signature match the shred and
// that the verification was successful.
Expand Down Expand Up @@ -721,7 +721,7 @@ mod tests {

#[test]
fn test_retransmitter_signature_payload_proof_invalid() {
// TODO: change visbility of shred::layout::set_retransmitter_signature.
// TODO: change visibility of shred::layout::set_retransmitter_signature.
// Hardcode offsets for now;
const DATA_SHRED_OFFSET: usize = 1139;
const CODING_SHRED_OFFSET: usize = 1164;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ pub fn confidential_mint_with_split_proofs(
) -> Result<Vec<Instruction>, ProgramError> {
check_program_account(token_program_id)?;
let mut accounts = vec![AccountMeta::new(*token_account, false)];
// we only need write lock to adjust confidential suppy on
// we only need write lock to adjust confidential supply on
// mint if a value for supply_elgamal_pubkey has been set
if supply_elgamal_pubkey.is_some() {
accounts.push(AccountMeta::new(*mint, false));
Expand Down

0 comments on commit 9194f3d

Please sign in to comment.