From d28536d76e8e40bb430a5ca02441c587bceb4c3c Mon Sep 17 00:00:00 2001 From: Stephen Akridge Date: Thu, 28 Jun 2018 15:59:32 -0700 Subject: [PATCH] Fix spelling of signature --- src/bank.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bank.rs b/src/bank.rs index efe7a74fd4..98a821a346 100644 --- a/src/bank.rs +++ b/src/bank.rs @@ -42,7 +42,7 @@ pub enum BankError { /// The bank has seen `Signature` before. This can occur under normal operation /// when a UDP packet is duplicated, as a user error from a client not updating /// its `last_id`, or as a double-spend attack. - DuplicateSiganture(Signature), + DuplicateSignature(Signature), /// The bank has not seen the given `last_id` or the transaction is too old and /// the `last_id` has been discarded. @@ -135,7 +135,7 @@ impl Bank { /// Store the given signature. The bank will reject any transaction with the same signature. fn reserve_signature(signatures: &mut HashSet, sig: &Signature) -> Result<()> { if let Some(sig) = signatures.get(sig) { - return Err(BankError::DuplicateSiganture(*sig)); + return Err(BankError::DuplicateSignature(*sig)); } signatures.insert(*sig); Ok(()) @@ -600,7 +600,7 @@ mod tests { ); assert_eq!( bank.reserve_signature_with_last_id(&sig, &mint.last_id()), - Err(BankError::DuplicateSiganture(sig)) + Err(BankError::DuplicateSignature(sig)) ); }