Duke Leto
d3b948005c
indentation
2 years ago
Duke Leto
3dbe8d3c6b
indentation
2 years ago
Duke Leto
c108db8f3c
Speed up randomx hashing by ~60X per core
These code changes move various randomx setup code out of the inner mining loop,
which significantly increases hashrate. Currently seeing ~60 hashes/second/core
on a Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz.
This code may have memory leaks, it does not destroy the randomx VM since it was
causing coredumps. It also seems to use more memory, I am only able to mine on 2
cores with 16GB of RAM. Using more cores runs out of memory.
2 years ago
Duke Leto
b94ec80307
Use RANDOMX_FLAG_FULL_MEM
2 years ago
Duke Leto
5aea752337
Fix compiler warnings
2 years ago
Duke Leto
6eccab3e98
Add missing newline in rxdebug and add debugging about solutionTargetChecks
2 years ago
Duke Leto
8e1ba0658d
Ensure pindexPrev is not null before mining against it in both BitcoinMiner and RandomXMiner
2 years ago
jahway603
b2987b43f0
miner: fix MAXSOLS
2 years ago
Duke Leto
a70897966a
Only print out randomx debug stuff when -debug=randomx
2 years ago
Duke Leto
66e9bd835a
less debug
2 years ago
Duke Leto
8ca330dc68
cleanup
2 years ago
Duke Leto
7dfa3f9475
cleanup
2 years ago
Duke Leto
22f353cb61
Use the current block template as randomxInput
2 years ago
Duke Leto
d078eed3cf
reduce some debugging in non-randomx code
2 years ago
Duke Leto
5a742dfc9d
Make our initial randomx key longer, at least 9 bytes of entropy
2 years ago
Duke Leto
42f75bd577
Make our randomx input longer with a variable prefix and suffix
2 years ago
Duke Leto
212f984459
Use -ac_name for initial randomx key and ASSETCHAINS_MAGIC for randomx input
2 years ago
Duke Leto
71a72c9c60
Prevent coredump when randomxBlockKey changes
2 years ago
Duke Leto
26129a6339
Give the randomx block interval and block lag CLI options
2 years ago
Duke Leto
05cbc86a00
Fix bug where GetNextWorkRequired did not know about randomx
2 years ago
Duke Leto
a45150eac4
yet more debug
2 years ago
Duke Leto
4988ce6f2e
much debug such wow
2 years ago
Duke Leto
2353f1a433
even more debug
2 years ago
Duke Leto
b99772e622
more debug
2 years ago
Duke Leto
5640d21e0e
avoid coredump by hardcoding some things
2 years ago
Duke Leto
97dea10b2b
more randomx debug
2 years ago
Duke Leto
fc214e9644
Get closer to deciding if a block is valid in randomx solver
2 years ago
Duke Leto
a2954c4576
Fill in more randomx miner code
2 years ago
Duke Leto
224b5b144c
Set a rolling randomx block key
2 years ago
Duke Leto
e4abb51fcd
update copyright years
2 years ago
Duke Leto
c5743d5985
Error checking for randomx vm creation
2 years ago
Duke Leto
8eab796800
WIP to change rx key+input for groups of blocks; use full ac_name in rx key
2 years ago
Duke Leto
c9aaf341ae
Use randomxInput = blake2b(randomXkey || ac_name)
2 years ago
Duke Leto
ad754cf2f0
Use chain magic as a unique starting value for randomx key
2 years ago
Duke Leto
583b0fdeff
Calculate randomx hashes
2 years ago
Duke Leto
f78479b34e
Get randomx flags and allocate cache
2 years ago
Duke Leto
35f6314123
Correctly link against librandomx in build
2 years ago
Duke Leto
35dde25d98
Fill out some RandomXMiner code, which is BitcoinMiner without all the extraneous junk
2 years ago
Duke Leto
a7a67a4668
remove dead code
2 years ago
Duke Leto
e6e5b3a352
Include randomx.h header in miner code
2 years ago
Duke Leto
26d78bedb5
Use a completely different function for RandomX mining to minimize potential of equihash consensus bugs
2 years ago
Duke Leto
f22cbbf1e2
Cleanup and remove dead code
3 years ago
Duke Leto
085f28a067
Hush does not have elections
3 years ago
Duke Leto
4fecf72ec8
Remove dead code
3 years ago
Duke Leto
b4cf845bf3
New listaddresses RPC and z_exportwallet RPC now can be called during RPC warmup
3 years ago
Duke Leto
e424a997a7
Cleanup
3 years ago
Duke Leto
40853af335
Remove things related to PoS
3 years ago
Duke Leto
aa39fc4f49
hush_baseid
3 years ago
Duke Leto
8e7cf04ad2
Fix upstream KMD crash bug in getblocktemplate when disablewallet=1
Originally dc8e1695c2
3 years ago
Duke Leto
6ca35f2b0a
Remove dead code
3 years ago