void checkCompatibility(cryptonote::Block& block) { ASSERT_NO_FATAL_FAILURE(checkEnumeratorToEnumerator(block)); ASSERT_NO_FATAL_FAILURE(checkEnumeratorToLegacy(block)); ASSERT_NO_FATAL_FAILURE(checkLegacyToEnumerator(block)); }
void checkCompatibility(Struct& original) { checkEqualBinary(original); ASSERT_NO_FATAL_FAILURE(checkEnumeratorToEnumerator(original)); ASSERT_NO_FATAL_FAILURE(checkEnumeratorToLegacy(original)); ASSERT_NO_FATAL_FAILURE(checkLegacyToEnumerator(original)); }
void checkCompatibility(CryptoNote::ParentBlock& pb, uint64_t ts, uint32_t nonce, bool hashingSerialization, bool headerOnly) { ASSERT_NO_FATAL_FAILURE(checkEnumeratorToEnumerator(pb, ts, nonce, hashingSerialization, headerOnly)); ASSERT_NO_FATAL_FAILURE(checkEnumeratorToLegacy(pb, ts, nonce, hashingSerialization, headerOnly)); ASSERT_NO_FATAL_FAILURE(checkLegacyToEnumerator(pb, ts, nonce, hashingSerialization, headerOnly)); }