fix typo
This commit is contained in:
parent
42ce57e6a8
commit
84e322735c
|
@ -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 == 91842 && hash == &H256::from_reversed_str("0x00000000000a4d0a398161ffc163c503763b1f4360639393e0e4c8e300e0caec")) ||
|
||||||
(height == 91880 && hash == &H256::from_reversed_str("0x00000000000743f190a18c5577a3c2d2a1f610ae9601ac046a38084ccb7cd721"))
|
(height == 91880 && hash == &H256::from_reversed_str("0x00000000000743f190a18c5577a3c2d2a1f610ae9601ac046a38084ccb7cd721"))
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ impl ChainVerifier {
|
||||||
// bip30
|
// bip30
|
||||||
for (tx_index, tx) in block.transactions.iter().enumerate() {
|
for (tx_index, tx) in block.transactions.iter().enumerate() {
|
||||||
if let Some(meta) = self.store.transaction_meta(&tx.hash()) {
|
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));
|
return Err(Error::Transaction(tx_index, TransactionError::UnspentTransactionWithTheSameHash));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue