Commit Graph
31937 Commits
Author SHA1 Message Date
jahway603 13f6a3d432 Merge pull request 'Updated doc/release-process.md to resolve Issue #407' (#428) from jahway603 into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/428
2024-09-26 17:08:55 +02:00
jahway603 7cb86b8aa6 Updated doc/release-process.md to resolve Issue #407 2024-09-26 11:06:29 -04:00
jahway603 7be46396ab Merge pull request 'Added build.sh checks for as and ld to be installed' (#427) from build.sh_changes into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/427
2024-09-26 16:42:23 +02:00
jahway603 8333810f0f Added build.sh checks for as and ld to be installed 2024-09-26 10:39:28 -04:00
jahway603 ec07eb04fc Merge pull request 'updated Debian package copyright to resolve Issue #134' (#426) from jahway603 into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/426
2024-09-26 16:23:28 +02:00
jahway603 c245242e0f updated Debian package copyright to resolve Issue #134 2024-09-26 10:21:20 -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
onryo 4538bf9e1e Add agorax.is 2024-09-20 21:13:54 +02:00
onryo 183cd81cf6 Small fix in README
OLD_WALLETS.md will be in the correct path once dev is merged into master, changing it to master now to prevent users reading docs from the dev branch
2024-09-20 20:50:51 +02: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 ad8a86a19b Merge branch 'dev' into duke 2024-09-18 12:16:29 -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
Duke 160802cddf Update relnotes 2024-09-18 11:48:52 -04:00
Duke fcc5c17628 Bump protocol version and client version 2024-09-18 10:59:37 -04:00
Duke d915fc38b7 Add some useful comments to the wolfssl package 2024-09-18 10:53:28 -04:00
Duke adbd47980c Merge branch 'dev' of https://git.hush.is/hush/hush3 into dev 2024-09-18 10:50:42 -04:00
duke c567096aae Merge pull request 'wolfssl downgrade to 4.8.1' (#422) from wolfssldowngrade into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/422
2024-09-18 16:48:29 +02:00
Duke 27f72405b2 Also print address to stderr in hush_isnotaryvout 2024-09-17 13:11:11 -04:00
Duke bd967b7ac6 Exit out of TLSManager::waitFor() loop if shutdown requested 2024-09-17 11:30:01 -04:00
Duke 8adaa3641f Exit out of TLSManager::waitFor() loop if shutdown requested 2024-09-17 11:29:24 -04:00
onryo 6feea4cfd2 wolfssl downgrade to 4.8.1 test 2024-09-17 09:25:58 +00:00
duke 49f303d804 Merge pull request 'Sync duke branch to dev' (#420) from duke into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/420
2024-09-16 17:31:37 +02:00
Duke 3f50dd988a Only use -rdynamic on debug builds 2024-09-16 11:26:28 -04:00
Duke bc20629b9f Revert "Fix memory DoS"
This reverts commit 84377caae7.
2024-09-16 11:18:16 -04:00
Duke fc5b0f38bd Revert "Memory DoS fixes"
This reverts commit 6a5f0eafde.
2024-09-16 11:17:56 -04:00
Duke c5eeb74807 Simplify MAX_BLOCK_SIZE
Our code requires sapling activation at height 1 so we can simplify this function
which should lead to some performance improvements since it is called from many
places, including mining code.
2024-09-16 11:06:31 -04:00
fekt 6a5f0eafde Memory DoS fixes 2024-09-15 01:20:06 -04:00
Duke 912942f2a8 Delete more CC stuff 2024-09-13 18:50:28 -04:00
Duke 4f4a72da8e Go back to taking both main+wallet lock in DecrementWitnesses
By taking a wallet lock first and then main later we run into
a potential deadlock :

2024-09-13 11:14:37 POTENTIAL DEADLOCK DETECTED
2024-09-13 11:14:37 Previous lock order was:
2024-09-13 11:14:37  (1) cs_wallet  wallet/wallet.cpp:985
2024-09-13 11:14:37  (2) cs_main  wallet/wallet.cpp:890
2024-09-13 11:14:37 Current lock order is:
2024-09-13 11:14:37  (2) cs_main  wallet/wallet.cpp:2845
2024-09-13 11:14:37  (1) cs_wallet  wallet/wallet.cpp:2845
2024-09-13 09:34:10 -04:00
Duke f5cae3b403 getinfo rpc needs a cs_wallet lock
Without it we get an AssertLockHeld when calling GetKeyPoolSize .
We could probably make this lock apply to less code, possibly only
the single line that calls GetKeyPoolSize() needs it.
2024-09-13 04:37:48 -04:00
Duke 6845fcd93a This rpc can only be used on non z2z chains 2024-09-13 04:22:28 -04:00
Duke be3641158a Only take cs_main lock in GetSaplingSpendDepth
We do not seem to need this lock for the entire DecrementNoteWitnesses function,
we need it only when calling GetSaplingSpendDepth. Also protects against
the case in the future where some code without cs_main calls GetSaplingSpendDepth.
2024-09-13 04:11:38 -04:00