Commit Graph

31186 Commits

Author SHA1 Message Date
onryo
9f90de2404 add more seeds 2023-02-08 19:17:54 +01:00
fekt
64d601047b Fix for wind0ze cross-compile 2023-02-06 01:18:18 -05:00
Duke
a7939139b2 Merge remote-tracking branch 'origin/abortrescan' into dev
Conflicts:
	src/wallet/wallet.cpp
2023-02-05 18:16:36 -08:00
Duke
9977e12acf Merge branch 'dragonx' into dev 2023-02-05 18:08:40 -08:00
duke
b6fc8b0149 Merge pull request 'BIP155 (addrv2)' (#253) from bip155 into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/253
2023-01-28 16:46:54 +00:00
Duke
0d79d11a95 Use Tor v3 .onion in qa tests 2023-01-28 08:44:36 -08:00
onryo
2f8a138cce add torv3 seed 2023-01-20 13:42:24 +01:00
jahway603
fc27972beb added i2p seed and wtfistheinternet seed 2023-01-19 19:12:06 -05:00
Duke
9519e3a6cd Merge branch 'bip155' of https://git.hush.is/hush/hush3 into bip155 2023-01-18 23:24:38 -05:00
Duke
d5e9ef763d Prevent coredump when -proxy=... -externalip=... is used
Replace an assert() in Unserialize() with the actual behavior we want,
i.e. making sure that vRandom is empty. Before the assert() was added,
the code called Clear() which ensured vRandom was empty. Clear() was
changed to the assert() in BTC commit b138973a8b4bbe061ad97011f278a21e08ea79e6
to prevent recursive locks but risks crashing the node. Instead, we
just empty out vRandom.

The addition of EXCLUSIVE_LOCKS_REQUIRED is not needed to fix
this but seems prudent since Serialize() has it and the original code
from BTC has EXCLUSIVE_LOCKS_REQUIRED on all the methods of this class.

As a side note, crashing a full node with an assert() and possibly
corrupting the wallet.dat, block files and other data is REALLY
FUCKING DUMB. Instead, code should be written to prevent the
possibility of crashing or throw an exception with a useful error.
2023-01-18 23:02:41 -05:00
duke
26064b4bf8 Update 'contrib/seeds/README.md'
Note that links to the files will not work until this is merged to master
2023-01-17 13:58:24 +00:00
duke
0ebb4c70c7 Update 'contrib/seeds/README.md' 2023-01-17 13:53:44 +00:00
duke
76b8de6b70 Update 'contrib/seeds/README.md' 2023-01-17 13:53:29 +00:00
Duke
176a9e1c7a Add 'make seeds' to make it easy to add seeds 2023-01-17 08:01:14 -05:00
Duke
6f8bce9b3a Fix bug where setban banned a node for 0 seconds 2023-01-12 23:59:11 -05:00
Duke
9d2277c697 Add tor v3 seed 2023-01-12 23:58:13 -05:00
zanzibar
512da314a5 BIP155 (addrv2)
Tor v3 + i2p
2023-01-06 15:23:22 +00:00
duke
fe9f1ef9e4 Merge pull request 'Remove alerts' (#252) from noalert into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/252
2022-12-20 14:25:41 +00:00
Duke
da5ae526e7 Fix compile issue 2022-12-18 13:51:50 -08:00
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
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
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