dvandal / cryptonote-nodejs-pool

Mining pool for all CryptoNote based coins using Cryptonight, Cryptonight Light and Cryptonight Heavy algorithms
GNU General Public License v2.0
364 stars 610 forks source link

Add support for Haven (XHV) #672

Closed GeniusHub-io closed 3 years ago

GeniusHub-io commented 3 years ago

Why was haven removed? Please add it back!

[pool] (Thread 1) Malformed message from ::ffff:1.1.1.1 generated an exception. Message: {"id":1,"jsonrpc":"2.0","method":"login","params":{"login":"XHV address","pass":"x","agent":"XMRig/6.10.0 (Windows NT 10.0; Win64; x64) libuv/1.41.0 gcc/10.1.0","algo":["cn/1","cn/2","cn/r","cn/fast","cn/half","cn/xao","cn/rto","cn/rwz","cn/zls","cn/double","cn-lite/1","cn-heavy/0","cn-heavy/tube","cn-heavy/xhv","cn-pico","cn-pico/tlo","cn/ccx","rx/0","rx/wow","rx/arq","rx/sfx","rx/keva","argon2/chukwa","argon2/chukwav2","argon2/wrkz","astrobwt"]}}

[pool] (Thread 1) Exception: Failed to parse block

Cideg commented 3 years ago

Which blob and cn-variant do you use?

GeniusHub-io commented 3 years ago

@Cideg I used the ones from the haven.json example config.

"cnAlgorithm": "cryptonight_heavy", "cnVariant": null, "cnBlobType": 0,

Cideg commented 3 years ago

ROFL that's where the mistake lies

https://github.com/MoneroOcean/node-cryptonight-hashing/blob/master/multihashing.cc#L214 and https://github.com/MoneroOcean/node-cryptoforknote-util/blob/master/src/cryptonote_config.h#L6

GeniusHub-io commented 3 years ago

@Cideg Oh my god, i am such an idiot.

Thank you SOO MUCH!

That worked and you are awesome!