diff --git a/CHANGELOG.md b/CHANGELOG.md index 94f15451..9151096a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [1.0.0] — unreleased + +- Removed: Deprecated function `ethash_verify()` has been removed. + Use `ethash_verify_against_boundary()`. + [#226](https://github.com/chfast/ethash/pull/226) + ## [0.9.0] — 2022-04-05 - Added: The constant `ETHASH_MAX_EPOCH_NUMBER = 32639` representing @@ -138,6 +144,7 @@ - Added: Experimental support for [ProgPoW] [0.9.1][ProgPoW-changelog]. +[1.0.0]: https://github.com/chfast/ethash/compare/v0.9.0..master [0.9.0]: https://github.com/chfast/ethash/releases/tag/v0.9.0 [0.8.0]: https://github.com/chfast/ethash/releases/tag/v0.8.0 [0.7.1]: https://github.com/chfast/ethash/releases/tag/v0.7.1 diff --git a/bindings/python/ethash/__init__.py b/bindings/python/ethash/__init__.py index 3cb8b1f6..c63f73ea 100644 --- a/bindings/python/ethash/__init__.py +++ b/bindings/python/ethash/__init__.py @@ -44,5 +44,5 @@ def verify(epoch_number, header_hash, mix_hash, nonce, boundary): c_boundary = ffi.new('union ethash_hash256*') c_boundary[0].str = boundary - ec = lib.ethash_verify(ctx, c_header_hash, c_mix_hash, nonce, c_boundary) + ec = lib.ethash_verify_against_boundary(ctx, c_header_hash, c_mix_hash, nonce, c_boundary) return ec == 0 diff --git a/bindings/python/ethash/_build.py b/bindings/python/ethash/_build.py index eb525f5b..8f2449c8 100644 --- a/bindings/python/ethash/_build.py +++ b/bindings/python/ethash/_build.py @@ -60,7 +60,7 @@ struct ethash_result ethash_hash(const struct ethash_epoch_context* context, const union ethash_hash256* header_hash, uint64_t nonce); -bool ethash_verify(const struct ethash_epoch_context* context, +bool ethash_verify_against_boundary(const struct ethash_epoch_context* context, const union ethash_hash256* header_hash, const union ethash_hash256* mix_hash, uint64_t nonce, const union ethash_hash256* boundary); diff --git a/include/ethash/ethash.h b/include/ethash/ethash.h index dd474508..feb66bd9 100644 --- a/include/ethash/ethash.h +++ b/include/ethash/ethash.h @@ -22,14 +22,6 @@ #pragma clang diagnostic pop -#if defined(__cplusplus) && __has_cpp_attribute(deprecated) < __cplusplus -#define DEPRECATED(MSG) [[deprecated(MSG)]] -#elif __has_attribute(deprecated) -#define DEPRECATED(MSG) __attribute__((deprecated(MSG))) -#else -#define DEPRECATED(MSG) -#endif - #ifndef __cplusplus #define noexcept // Ignore noexcept in C code. #endif @@ -180,17 +172,6 @@ ethash_errc ethash_verify_against_difficulty(const struct ethash_epoch_context* const union ethash_hash256* difficulty) noexcept; -/** - * @deprecated Use ethash_verify_against_boundary(). - */ -DEPRECATED("use ethash_verify_against_boundary()") -static inline ethash_errc ethash_verify(const struct ethash_epoch_context* context, - const union ethash_hash256* header_hash, const union ethash_hash256* mix_hash, uint64_t nonce, - const union ethash_hash256* boundary) noexcept -{ - return ethash_verify_against_boundary(context, header_hash, mix_hash, nonce, boundary); -} - /** * Verify only the final hash. This can be performed quickly without accessing Ethash context. *