fixed
This commit is contained in:
parent
1e8fc76f22
commit
912715e444
@ -128,7 +128,6 @@ void miner_thread() noexcept {
|
|||||||
alignas(32) Key seed;
|
alignas(32) Key seed;
|
||||||
KeysBox keys;
|
KeysBox keys;
|
||||||
Address rawAddr;
|
Address rawAddr;
|
||||||
unsigned char ones = 0;
|
|
||||||
std::random_device rd;
|
std::random_device rd;
|
||||||
unsigned long state = static_cast<unsigned long>(rd());
|
unsigned long state = static_cast<unsigned long>(rd());
|
||||||
printf("Using seed: %lu\n", state);
|
printf("Using seed: %lu\n", state);
|
||||||
@ -136,8 +135,7 @@ void miner_thread() noexcept {
|
|||||||
rmbytes(seed, state);
|
rmbytes(seed, state);
|
||||||
//sign_keypair(keys.PublicKey, keys.PrivateKey, seed);
|
//sign_keypair(keys.PublicKey, keys.PrivateKey, seed);
|
||||||
crypto_sign_ed25519_seed_keypair(keys.PublicKey, keys.PrivateKey, seed);
|
crypto_sign_ed25519_seed_keypair(keys.PublicKey, keys.PrivateKey, seed);
|
||||||
ones = getZeros(keys.PublicKey);
|
if (unsigned char ones = getZeros(keys.PublicKey); ones > conf.high.load()) {
|
||||||
if (ones > conf.high.load()) {
|
|
||||||
conf.high.store(ones);
|
conf.high.store(ones);
|
||||||
invertKey(keys.PublicKey, inv);
|
invertKey(keys.PublicKey, inv);
|
||||||
getRawAddress(ones, inv, rawAddr);
|
getRawAddress(ones, inv, rawAddr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user