Browse Source

Add a new memhash option to ASSETCHAINS_ALGORITHMS

ramhash
Duke 9 months ago
parent
commit
f89cd61fce
  1. 6
      src/hush_globals.h

6
src/hush_globals.h

@ -81,11 +81,13 @@ std::vector<std::string> 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};

Loading…
Cancel
Save