Commit Graph

1231 Commits

Author SHA1 Message Date
Duke
479ed54ff0 Add devtax address and scriptpub to getblocktemplate output 2023-06-23 09:13:11 -04:00
Duke
9f92bdd7dc Decentralized Devtax 2023-06-19 09:32:32 -04:00
Duke
fc921eba57 Remove dead code 2023-06-09 00:00:42 -04:00
Duke
bde7273c9f Remove mapRequest tracking 2023-03-14 15:54:28 -04:00
Duke
e033a2e6eb Update copyrights to 2023 2023-02-09 18:06:03 -05:00
Duke Leto
b7adb511a6 cleanup 2022-11-15 19:13:31 -05:00
Duke Leto
665f895134 Optimize inner mining loop 2022-11-15 14:40:10 -05:00
Duke Leto
c8b2163c1c Optimize inner mining loop 2022-11-15 14:21:45 -05:00
Duke Leto
1a4e8d4acf Initialize randomx dataset with 2 threads 2022-11-15 14:11:55 -05:00
Duke Leto
c55d1cbc5f Destroy randomx VM when we are done with it 2022-11-15 14:02:02 -05:00
Duke Leto
d3b948005c indentation 2022-11-15 13:44:47 -05:00
Duke Leto
3dbe8d3c6b indentation 2022-11-15 13:43:10 -05:00
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.
2022-11-11 06:42:51 -05:00
Duke Leto
b94ec80307 Use RANDOMX_FLAG_FULL_MEM 2022-11-10 22:38:04 -05:00
Duke Leto
5aea752337 Fix compiler warnings 2022-11-08 09:16:27 -05:00
Duke Leto
6eccab3e98 Add missing newline in rxdebug and add debugging about solutionTargetChecks 2022-11-08 09:07:49 -05:00
Duke Leto
8e1ba0658d Ensure pindexPrev is not null before mining against it in both BitcoinMiner and RandomXMiner 2022-09-18 10:27:48 -04:00
jahway603
b2987b43f0 miner: fix MAXSOLS 2022-09-07 01:10:53 -04:00
Duke Leto
a70897966a Only print out randomx debug stuff when -debug=randomx 2022-07-11 18:33:10 -04:00
Duke Leto
66e9bd835a less debug 2022-07-08 09:42:54 -04:00
Duke Leto
8ca330dc68 cleanup 2022-07-04 01:45:05 -04:00
Duke Leto
7dfa3f9475 cleanup 2022-07-04 01:08:45 -04:00
Duke Leto
22f353cb61 Use the current block template as randomxInput 2022-07-03 13:20:13 -04:00
Duke Leto
d078eed3cf reduce some debugging in non-randomx code 2022-07-02 11:04:28 -04:00
Duke Leto
5a742dfc9d Make our initial randomx key longer, at least 9 bytes of entropy 2022-07-02 10:57:01 -04:00
Duke Leto
42f75bd577 Make our randomx input longer with a variable prefix and suffix 2022-07-02 01:52:49 -04:00
Duke Leto
212f984459 Use -ac_name for initial randomx key and ASSETCHAINS_MAGIC for randomx input 2022-07-02 01:03:05 -04:00
Duke Leto
71a72c9c60 Prevent coredump when randomxBlockKey changes 2022-07-01 18:37:59 -04:00
Duke Leto
26129a6339 Give the randomx block interval and block lag CLI options 2022-07-01 17:47:03 -04:00
Duke Leto
05cbc86a00 Fix bug where GetNextWorkRequired did not know about randomx 2022-07-01 13:43:51 -04:00
Duke Leto
a45150eac4 yet more debug 2022-07-01 13:10:30 -04:00
Duke Leto
4988ce6f2e much debug such wow 2022-07-01 12:20:51 -04:00
Duke Leto
2353f1a433 even more debug 2022-06-30 09:18:58 -04:00
Duke Leto
b99772e622 more debug 2022-06-30 09:05:20 -04:00
Duke Leto
5640d21e0e avoid coredump by hardcoding some things 2022-06-29 23:20:25 -04:00
Duke Leto
97dea10b2b more randomx debug 2022-06-29 22:18:05 -04:00
Duke Leto
fc214e9644 Get closer to deciding if a block is valid in randomx solver 2022-03-16 11:57:33 -04:00
Duke Leto
a2954c4576 Fill in more randomx miner code 2022-03-10 01:09:42 -05:00
Duke Leto
224b5b144c Set a rolling randomx block key 2022-03-09 10:18:56 -05:00
Duke Leto
e4abb51fcd update copyright years 2022-03-09 08:53:37 -05:00
Duke Leto
c5743d5985 Error checking for randomx vm creation 2022-02-21 09:41:08 -05:00
Duke Leto
8eab796800 WIP to change rx key+input for groups of blocks; use full ac_name in rx key 2022-02-20 23:46:37 -05:00
Duke Leto
c9aaf341ae Use randomxInput = blake2b(randomXkey || ac_name) 2022-02-20 23:20:15 -05:00
Duke Leto
ad754cf2f0 Use chain magic as a unique starting value for randomx key 2022-02-20 21:55:34 -05:00
Duke Leto
583b0fdeff Calculate randomx hashes 2022-02-20 14:46:42 -05:00
Duke Leto
f78479b34e Get randomx flags and allocate cache 2022-02-20 12:57:08 -05:00
Duke Leto
35f6314123 Correctly link against librandomx in build 2022-02-20 11:32:09 -05:00
Duke Leto
35dde25d98 Fill out some RandomXMiner code, which is BitcoinMiner without all the extraneous junk 2022-01-23 00:32:01 -05:00
Duke Leto
a7a67a4668 remove dead code 2022-01-22 23:58:10 -05:00
Duke Leto
e6e5b3a352 Include randomx.h header in miner code 2022-01-22 23:57:42 -05:00