diff --git a/src/blockchain_db/blockchain_db.cpp b/src/blockchain_db/blockchain_db.cpp index 9f760dc0d..5f21266e7 100644 --- a/src/blockchain_db/blockchain_db.cpp +++ b/src/blockchain_db/blockchain_db.cpp @@ -903,7 +903,7 @@ void BlockchainDB::fixup() "633cdedeb3b96ec4f234c670254c6f721e0b368d00b48c6b26759db7d62cf52d", }; - if (height() > 202612) + if (height() > 202612 && strcmp(CRYPTONOTE_NAME, "monero")==0) { for (const auto &kis: key_images_202612) { @@ -916,7 +916,7 @@ void BlockchainDB::fixup() } } } - if (height() > 685498) + if (height() > 685498 && strcmp(CRYPTONOTE_NAME, "monero")==0) { for (const auto &kis: key_images_685498) { diff --git a/src/cryptonote_basic/cryptonote_format_utils.cpp b/src/cryptonote_basic/cryptonote_format_utils.cpp index 218cd24c4..54d5a091d 100644 --- a/src/cryptonote_basic/cryptonote_format_utils.cpp +++ b/src/cryptonote_basic/cryptonote_format_utils.cpp @@ -889,7 +889,7 @@ namespace cryptonote const std::string existing_block_id_202612 = "bbd604d2ba11ba27935e006ed39c9bfdd99b76bf4a50654bc1e1e61217962698"; crypto::hash block_blob_hash = get_blob_hash(block_to_blob(b)); - if (string_tools::pod_to_hex(block_blob_hash) == correct_blob_hash_202612) + if (string_tools::pod_to_hex(block_blob_hash) == correct_blob_hash_202612 && strcmp(CRYPTONOTE_NAME, "monero")==0) { string_tools::hex_to_pod(existing_block_id_202612, res); return true; @@ -899,7 +899,7 @@ namespace cryptonote if (hash_result) { // make sure that we aren't looking at a block with the 202612 block id but not the correct blobdata - if (string_tools::pod_to_hex(res) == existing_block_id_202612) + if (string_tools::pod_to_hex(res) == existing_block_id_202612 && strcmp(CRYPTONOTE_NAME, "monero")==0) { LOG_ERROR("Block with block id for 202612 but incorrect block blob hash found!"); res = null_hash;