From 84e322735ccac3fae2195d67f9cba6160b0fdc13 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Sun, 27 Nov 2016 19:19:31 +0300 Subject: [PATCH] fix typo --- network/src/consensus.rs | 2 +- verification/src/chain_verifier.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/network/src/consensus.rs b/network/src/consensus.rs index fca4219a..3890a73f 100644 --- a/network/src/consensus.rs +++ b/network/src/consensus.rs @@ -30,7 +30,7 @@ impl ConsensusParams { } } - pub fn is_bip30_expcetion(&self, hash: &H256, height: u32) -> bool { + pub fn is_bip30_exception(&self, hash: &H256, height: u32) -> bool { (height == 91842 && hash == &H256::from_reversed_str("0x00000000000a4d0a398161ffc163c503763b1f4360639393e0e4c8e300e0caec")) || (height == 91880 && hash == &H256::from_reversed_str("0x00000000000743f190a18c5577a3c2d2a1f610ae9601ac046a38084ccb7cd721")) } diff --git a/verification/src/chain_verifier.rs b/verification/src/chain_verifier.rs index 66cb7dc0..b317951b 100644 --- a/verification/src/chain_verifier.rs +++ b/verification/src/chain_verifier.rs @@ -78,7 +78,7 @@ impl ChainVerifier { // bip30 for (tx_index, tx) in block.transactions.iter().enumerate() { if let Some(meta) = self.store.transaction_meta(&tx.hash()) { - if !meta.is_fully_spent() && !consensus_params.is_bip30_expcetion(&block_hash, at_height) { + if !meta.is_fully_spent() && !consensus_params.is_bip30_exception(&block_hash, at_height) { return Err(Error::Transaction(tx_index, TransactionError::UnspentTransactionWithTheSameHash)); } }