diff --git a/docs/changelog.rst b/docs/changelog.rst index 2c89dab..22bff13 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -17,7 +17,7 @@ Version 1.6.1 (in progress) * cleaner mempool and notification handling * aiohttp min version requirement raised to 2.0 * onion peers are ignored if no tor proxy is available -* add Motion coin (ocruzv) +* add Motion coin (ocruzv), MinexCoin (joesixpack) Version 1.6 (19 July 2018) =========================== diff --git a/electrumx/lib/coins.py b/electrumx/lib/coins.py index 6461c8f..9b7cc48 100644 --- a/electrumx/lib/coins.py +++ b/electrumx/lib/coins.py @@ -1923,3 +1923,52 @@ class Monoeci(Coin): '''Given a header return the hash.''' import x11_hash return x11_hash.getPoWHash(header) + + +class MinexcoinMixin(object): + STATIC_BLOCK_HEADERS = True + BASIC_HEADER_SIZE = 209 + DESERIALIZER = lib_tx.DeserializerEquihash + + @classmethod + def electrum_header(cls, header, height): + version, = struct.unpack('