This commit is contained in:
rcxpony 2025-03-15 05:34:47 +05:00
parent 1e8fc76f22
commit 912715e444

View File

@ -128,7 +128,6 @@ void miner_thread() noexcept {
alignas(32) Key seed;
KeysBox keys;
Address rawAddr;
unsigned char ones = 0;
std::random_device rd;
unsigned long state = static_cast<unsigned long>(rd());
printf("Using seed: %lu\n", state);
@ -136,8 +135,7 @@ void miner_thread() noexcept {
rmbytes(seed, state);
//sign_keypair(keys.PublicKey, keys.PrivateKey, seed);
crypto_sign_ed25519_seed_keypair(keys.PublicKey, keys.PrivateKey, seed);
ones = getZeros(keys.PublicKey);
if (ones > conf.high.load()) {
if (unsigned char ones = getZeros(keys.PublicKey); ones > conf.high.load()) {
conf.high.store(ones);
invertKey(keys.PublicKey, inv);
getRawAddress(ones, inv, rawAddr);