|
|
@ -1128,7 +1128,7 @@ void static RandomXMiner() |
|
|
|
char randomxHash[RANDOMX_HASH_SIZE]; |
|
|
|
rxdebug("%s: created randomxHash of size %d\n", RANDOMX_HASH_SIZE); |
|
|
|
char randomxKey[82]; // randomx spec says keysize of >60 bytes is implementation-specific
|
|
|
|
// initial randomx key is unique to every Hush Smart Chain, and has at least 9 bytes (2^9=128 bits) of entropy
|
|
|
|
// initial randomx key is unique to every Hush Arrakis Chain, and has at least 9 bytes (2^9=128 bits) of entropy
|
|
|
|
// since magic is 4 bytes, rpc port is 4 bytes and smart chain symbol must be at least 1 character long
|
|
|
|
snprintf(randomxKey, 81, "%08x%s%08x", ASSETCHAINS_MAGIC, SMART_CHAIN_SYMBOL, ASSETCHAINS_RPCPORT); |
|
|
|
|
|
|
|