From f89cd61fcea1583e8bd9da79fd4ae7f881c9f982 Mon Sep 17 00:00:00 2001 From: Duke Date: Tue, 8 Aug 2023 23:49:18 -0400 Subject: [PATCH] Add a new memhash option to ASSETCHAINS_ALGORITHMS --- src/hush_globals.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hush_globals.h b/src/hush_globals.h index e307f774c..2f9e80f8c 100644 --- a/src/hush_globals.h +++ b/src/hush_globals.h @@ -81,11 +81,13 @@ std::vector ASSETCHAINS_PRICES,ASSETCHAINS_STOCKS; // this is the offset in the ASSETCHAINS_ALGORITHMS array #define _ASSETCHAINS_EQUIHASH 0 #define _ASSETCHAINS_RANDOMX 1 +#define _ASSETCHAINS_MEMHASH 2 -uint32_t ASSETCHAINS_NUMALGOS = 4; // there are different variants of equihash with different (N,K) +uint32_t ASSETCHAINS_NUMALGOS = 5; // there are different variants of equihash with different (N,K) uint32_t ASSETCHAINS_EQUIHASH = _ASSETCHAINS_EQUIHASH; uint32_t ASSETCHAINS_RANDOMX = _ASSETCHAINS_RANDOMX; -const char *ASSETCHAINS_ALGORITHMS[] = {"equihash", "randomx"}; +uint32_t ASSETCHAINS_MEMHASH = _ASSETCHAINS_MEMHASH; +const char *ASSETCHAINS_ALGORITHMS[] = {"equihash", "randomx", "memhash"}; uint64_t ASSETCHAINS_NONCEMASK[] = {0xffff}; uint32_t ASSETCHAINS_NONCESHIFT[] = {32}; uint32_t ASSETCHAINS_HASHESPERROUND[] = {1};