Commit Graph

24514 Commits

Author SHA1 Message Date
Duke
cbc8995b36 -clearnet=0 2025-02-28 12:58:01 -05:00
Duke
937f341129 Merge branch 'dev' of https://git.hush.is/hush/hush3 into dev 2025-02-18 09:36:48 -05:00
Duke
7dec077899 Bump version and protocol version 2025-02-18 09:36:39 -05:00
Duke
b880801235 Move -disableipv4/-disableipv6 parsing to be after -onlynet parsing 2025-02-18 07:04:10 -05:00
Duke
44829674c8 Prevent the use of -disableipv4/-disableipv6 multiple times 2025-02-16 21:45:10 -05:00
Duke
53cf574c03 Use constants for the defaults of disableipv4/disableipv6 so the code and docs cannot be out of sync 2025-02-12 17:23:48 -05:00
Duke
85605737f0 Fix 'Not enough conversion specifiers in format string' 2025-02-12 17:13:46 -05:00
Duke
f98c34be1c Make -disableipv4/-disableipv6 do something useful 2025-02-12 13:38:53 -05:00
Duke
15f889d9f8 Cleanup 2024-12-03 11:55:43 -05:00
Duke
179fc6d6c0 Skip networks which do not have ASNs 2024-12-03 11:53:30 -05:00
Duke
ecf98cbce1 Schedule asmap health check to run once 5 mins after node starts 2024-12-03 11:28:11 -05:00
Duke
cceb61c371 Initial implementation of asmap health check 2024-12-02 11:11:40 -05:00
Duke
1009f931f2 Remove duplicate scheduling of peers.dat 2024-12-01 20:05:34 -05:00
Duke
5578bc81b9 Remove dead code 2024-11-11 08:25:38 -05:00
Duke
82f6b592c5 Remove dead code 2024-11-09 12:01:02 -05:00
Duke
f12152af70 Remove dead code 2024-11-09 10:27:58 -05:00
Duke
d31c69cf23 Remove dead code 2024-11-09 09:18:08 -05:00
Duke
dbc5a39afa Fee requirement only applies to txs with OP_RETURN 2024-11-02 10:39:47 -04:00
Duke
58f4be930e Require 1 COIN fee per tx that uses OP_RETURN, regardless of tx size 2024-11-01 11:40:54 -04:00
Duke
d8a799abe3 Make time warning correct for any HAC 2024-10-22 08:50:39 -04:00
Duke
65568d5738 Remove opreturn amnesty 2024-10-07 06:03:41 -04:00
Duke
18e4ca070e Remove more cc stuff 2024-10-01 10:49:13 -04:00
Duke
a00ad8eeb8 Merge branch 'dev' into duke 2024-10-01 08:58:09 -04:00
onryo
54b2f216ad make seeds 2024-09-30 23:37:08 +02:00
duke
9f11b437f3 Merge pull request 'Fix fatal error and the version flag option warning when compiling for windows on dev' (#425) from onryo into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/425
2024-09-28 14:56:46 +02:00
onryo
be5a78931b Fix fatal error when compiling for windows on dev 2024-09-27 22:40:46 +02:00
onryo
e68795f4f9 Revert "Fix fatal error and the version flag option when compiling for windows"
This reverts commit f144f8a0b9.
2024-09-27 22:39:32 +02:00
Duke
47cc49bcc5 Change OP_RETURN fee requirements
This commit removes the CLI option -opretmintxfee, makes it always
enabled, changes the required fee rate and changes which OP_RETURNS
get "amnesty" and do not need to pay this fee rate.
2024-09-27 09:09:31 -04:00
Duke
93f6514d86 Disable absurd fee checks when adding to the mempool
To protect users who are not using opreturn we prevent any use of z_sendmany
with absurd fees if opreturn is not being used, so this change only affects
users who are adding opreturn data. Since there is no way to currently send
opreturn data via a GUI this still protects all GUI users from absurd fees
while allowing CLI users to decide to use higher fees.
2024-09-26 11:13:07 -04:00
onryo
f144f8a0b9 Fix fatal error and the version flag option when compiling for windows 2024-09-26 05:04:55 +02:00
Duke
01f0c34661 We do not support coin imports 2024-09-24 09:35:20 -04:00
Duke
bd5f0103a8 Remove more cc code 2024-09-22 12:19:12 -04:00
Duke
b6bcacad20 We do not support coin imports 2024-09-22 12:16:21 -04:00
Duke
f6b42fe3a3 We do not support coin imports 2024-09-22 12:12:22 -04:00
Duke
148ea35a98 Remove dead sprout code 2024-09-22 11:56:12 -04:00
Duke
380875906d Remove more CC stuff 2024-09-22 09:40:37 -04:00
Duke
26a341983a const some stuff 2024-09-22 08:57:23 -04:00
Duke
986d0d8b7d isStake is always zero 2024-09-22 08:51:48 -04:00
Duke
45de2584b9 ASSETCHAINS_STAKED is always zero 2024-09-21 11:25:48 -04:00
Duke
3fba035c01 const some stuff 2024-09-21 11:04:25 -04:00
Duke
40cf90b4ff Fix compile issue with missing cast to unsigned int 2024-09-21 11:03:49 -04:00
Duke
2a740cb09d Merge branch 'duke' of https://git.hush.is/hush/hush3 into duke 2024-09-20 13:43:15 -04:00
Duke
a53d8baeda Do not lock cs_main in mining code
Technically we should take this lock but it has never been there before
and it leads to potentially large slow downs when mining with multiple cores.
We see basically the same hashrate for a single core if we have the lock or
not and that makes sense, since there is only one core, there are no other
mining threads that have to wait. But on one particular CPU I saw a 6% slower
hashing when mining with 2 threads and 35% slower with 3 threads.

This change also means debug builds will coredump if mining is enabled.
2024-09-20 13:41:51 -04:00
Duke
792fec7689 Do not lock cs_main in mining code
Technically we should take this lock but it has never been there before
and it leads to potentially large slow downs when mining with multiple cores.
We see basically the same hashrate for a single core if we have the lock or
not and that makes sense, since there is only one core, there are no other
mining threads that have to wait. But on one particular CPU I saw a 6% slower
hashing when mining with 2 threads and 35% slower with 3 threads.

This change also means debug builds will coredump if mining is enabled.
2024-09-20 13:35:38 -04:00
Duke
dfeccf6ce4 Make nBlockPrioritySize and nBlockMinSize consts 2024-09-20 11:24:59 -04:00
Duke
5a3c06e539 MAX_BLOCK_SIZE ignores height argument
The function no longer looks at this argument so don't waste resources calculating a height.
2024-09-20 11:18:16 -04:00
Duke
f3995fa1b7 Cleanup MAX_BLOCK_SIZE 2024-09-18 18:12:01 -04:00
Duke
d471af9ef5 IsPegsImport() is always false
Since this function always returns false and is used in many "hot"
code paths, removing it from the code should give us a performance boost.
2024-09-18 12:13:37 -04:00
Duke
ffce5edda3 Remove commented out code 2024-09-18 11:59:00 -04:00
Duke
5e30079fcd IsPegsImport() always returns false 2024-09-18 11:53:40 -04:00