Commit Graph

24135 Commits

Author SHA1 Message Date
jahway603
10eb871026 merging dev into jahway603 branch 2023-04-03 19:29:06 -04:00
Duke
63ad87f69b Ensure CNode::addrKnown immediately takes little memory when we disconnect the node 2023-03-17 00:21:00 -04:00
Duke
c1baab7b8a Rate limit incoming addr p2p messages 2023-03-16 22:33:25 -04:00
jahway603
d134fcf988 removed unused function to resolve Issue #273 2023-03-15 23:12:31 -04:00
Duke
bde7273c9f Remove mapRequest tracking 2023-03-14 15:54:28 -04:00
Duke
560f8e2f41 Remove unused GetRequestCount() 2023-03-14 14:44:14 -04:00
Duke
71928fa228 Randomize order of processing messages from peers 2023-03-14 14:42:39 -04:00
fekt
ac413ecb2e Adding Mac SDX paths 2023-03-03 20:20:47 -05:00
fekt
883e598994 Fix for #270 to allow subnets
This seems to work as expected and allows CIDR, subnet, and single IP while rejecting IPs out of range.
2023-02-18 17:30:33 +00:00
Duke
a0d02cc3be Batch files for dragonx-cli and dragonxd 2023-02-15 18:06:09 -08:00
Duke
94500a6e39 Reduce stderr spam 2023-02-10 11:27:11 -05:00
Duke
47c67e45db checkpoints 2023-02-09 18:22:57 -05:00
Duke
e033a2e6eb Update copyrights to 2023 2023-02-09 18:06:03 -05:00
Duke
2c9bd5dd18 abortrescan 2023-02-09 17:17:00 -05:00
Duke
537307a812 Bump version and protocol version 2023-02-09 13:53:55 -08:00
Duke
b360a2395a Allow abortrescan to be called via RPC 2023-02-09 13:45:45 -08:00
duke
07505e311d Merge pull request 'correct ac_supply documented default' (#236) from jahway603 into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/236
2023-02-09 21:16:00 +00:00
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
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
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
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
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
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
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