Commit Graph

31220 Commits

Author SHA1 Message Date
Duke
ae64eb2392 Remove alerts 2022-12-18 08:24:49 -08:00
Duke Leto
01ff5c81f6 Improve some comments and ensure backcompat on HUSH mainnet
Some comments turned out to be wrong and some could be more helpful.
It turns out that when AveragingWindowTimespan was changed to fix a HUSH
mainnet bug long ago, that introduced a bug for HSC's that do not use
a 75s block time. Since the default is 60s that likely means all HSC's that will
be created. There were no production HSC's in use at the time of that bugfix,
so the bug went unnoticed until DRAGONX was launched. The bug then manifested
as the DRAGONX difficulty bug, which cause the difficulty to never correct down,
only up and lead to extremely long block times on DRAGONX mainnet.

This code change ensures that HUSH mainnet uses the same hardcoded AWT as it
did previously and all other HSC's will use params.AveragingWindowTimespan() ,
including DRAGONX mainnet.

This seems less dangerous than changing AveragingWindowTimespan() on HUSH mainnet.
2022-12-06 14:23:53 -05:00
duke
4257b257df Merge pull request 'rm hashFinalSproutRoot' (#250) from onryo/hush3:dev into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/250
2022-12-04 17:05:50 +00:00
onryo
f2f6019620 rm hashFinalSproutRoot
related to https://git.hush.is/hush/hush3/issues/248
2022-12-04 13:57:07 +00:00
Duke Leto
1b7f200d29 Fix typo in getsnapshot docs 2022-12-01 14:55:53 -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
0926dfca75 Merge branch 'duke' into awt 2022-11-12 09:25:36 -05:00
Duke Leto
81f0c7755e Code to test exact cause of the 'up only' diff bug 2022-11-12 09:22:10 -05:00
Jonathan "Duke" Leto
fcfe09d196 chainActive.Tip() can be NULL if have never synced to a chain tip before, so use chainActive.Height() instead 2022-11-12 04:17:35 -08:00
Jonathan "Duke" Leto
ca52c6beb8 Avoid potential coredump if pindex is NULL 2022-11-11 04:26:18 -08: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
c81b49c96c fix params for testcoins 2022-11-08 09:55:46 -05:00
Duke Leto
24dc8252a3 Add scripts to research randomx difficulty problems 2022-11-08 09:29:05 -05:00
Duke Leto
591b9e4c7d Merge branch 'dev' into duke 2022-11-08 09:17:00 -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
jahway603
d5871b2090 correct ac_supply documented default 2022-11-06 21:02:33 -05:00
jahway603
d2001b1ee0 Merge pull request 'dragonx scripts: removed hardcoded bash location for better platform support' (#234) from jahway603 into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/234
2022-11-06 20:42:23 +00:00
jahway603
cba21e8f2a removed hardcoded bash location for better platform support 2022-11-06 15:14:46 -05:00
Duke Leto
db2fe16b0e Merge pull request 'dragonx scripts' (#233) from hydra/hush3:dev into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/233
2022-11-06 12:04:12 +00:00
hydra
3499aad7cd Update 'src/dragonxd' 2022-11-06 11:59:39 +00:00
hydra
ac2a68aa86 update seednode ip 2022-11-06 11:59:20 +00:00
Duke Leto
65b9e74333 Delete 'issue_template.md' 2022-11-03 11:13:38 +00:00
Duke Leto
7bbc291370 Add 'issue_template.md' 2022-11-03 11:11:51 +00:00
Duke Leto
98ca257908 Merge pull request 'document -maxreorg argument' (#231) from jahway603 into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/231
2022-11-01 21:05:06 +00:00
jahway603
202e67f9ac document -maxreorg argument 2022-11-01 14:25:12 -04:00
Hydra
7f37974e28 dragonxd 2022-11-01 11:32:35 -04:00
Hydra
0e2f0f8ffe dragonx-cli 2022-11-01 10:29:35 -04:00
Hydra
4a534ceb3f delete 2022-11-01 10:28:37 -04:00
hydra
bfb51e1c34 dragonx-cli 2022-11-01 14:16:18 +00:00
Duke Leto
17e6fd25c0 Merge pull request 'added smartz to build.sh and document -maxdebugfilesize' (#230) from jahway603 into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/230
2022-11-01 12:37:03 +00:00
triplefive
70908b1009 document -maxdebugfilesize 2022-10-31 16:13:21 -04:00
triplefive
491e263af9 added smartz to build.sh 2022-10-31 15:19:35 -04:00
Jonathan "Duke" Leto
ef461fd639 Merge remote-tracking branch 'origin/master' into dev 2022-10-31 05:34:30 -07:00
Duke Leto
0d86a2d895 Merge pull request 'removed "python" from apt command' (#229) from dan_s/hush3:master into master
Reviewed-on: https://git.hush.is/hush/hush3/pulls/229
2022-10-31 11:39:34 +00:00
dan_s
0786c0755a removed "python" from apt command 2022-10-30 21:14:20 -05:00
Duke Leto
bfc91e0f78 Merge pull request 'Mac changes' (#227) from dev-mac into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/227
2022-10-29 11:49:51 +00:00
fekt
66411537dd Mac fix for HSCs 2022-10-28 19:03:44 -04:00
Duke Leto
c36464ee1b Fix bug in getrescaninfo
There was a small bug in getrescaninfo where when a rescan first starts, it
shows rescanning=true but progress=100% because rescanHeight was not initialized
correctly.

Also update our rescanHeight while we are fast-forwarding thru blocks which are
before the current wallet birthday.
2022-10-28 17:09:40 -04:00
Duke Leto
d94883ad64 Update 'doc/release-process.md' 2022-10-28 13:26:33 +00:00
fekt
f4927fa54a OSX deployment script and bg 2022-10-28 01:17:22 -04:00
fekt
a5bcfc88b6 Mac build fix 2022-10-28 00:56:40 -04:00
fekt
24788c7dfe Build RandomX 2022-10-28 00:37:18 -04:00