Duke
a581f8fc8e
Fix compile error and remove some cryptocondition dingleberries
2024-02-15 11:03:05 -05:00
Duke
b9d3c77a4c
Merge branch 'duke' into dev
2024-02-15 10:41:50 -05:00
Duke
07b041fd94
Do not apply overwinter/sapling consensus rules to block 0
2024-02-15 10:40:22 -05:00
Duke
8f2350fd84
Merge branch 'dev' into duke
2024-02-15 10:11:52 -05:00
Duke
b14070d15b
Overwinter+sapling consensus rules do not apply to height=0
2024-02-15 10:06:37 -05:00
Duke
c94906e011
Do not spam debug.log with 'Received addr' unless -debug
2024-02-12 09:57:52 -05:00
Duke
acee1c8cf5
Do not spam debug.log with 'Received addr' unless -debug
2024-02-12 09:57:09 -05:00
Duke
90d47ecce4
Potentially fix #382 by not checking the genesis block against sapling consensus rules
2024-02-11 06:29:29 -05:00
Duke
27db254d68
Sapling and Overwinter network upgrades are always active
...
These NU's are always active for Hush Arrakis Chains so this code only serves
to slow down all operations by constantly being checked. So we disable them
which will speed up syncing, mining and creating transactions.
2024-01-21 16:34:53 -05:00
Duke
b0b9565d6a
Sapling and Overwinter network upgrades are always active
2024-01-21 15:32:23 -05:00
Duke
3a3c67e0fc
Delete many things we do not want or need
2024-01-13 00:06:09 -05:00
Duke
90133dbc0e
Also log flush mode in FlushStateToDisk()
2023-12-27 17:56:44 -05:00
Duke
20fdc0e4fe
Get rid of deprecation entirely which allows current code to run past block height 5555555
2023-12-27 12:57:35 -05:00
Duke
2a2391f0f9
Log when trimming block solutions
2023-12-27 11:43:53 -05:00
duke
95b4371aa4
Merge pull request 'Reduce memory usage' ( #332 ) from reduce_memory into dev
...
Reviewed-on: https://git.hush.is/hush/hush3/pulls/332
2023-10-25 15:11:51 +00:00
Duke
4256e7d835
Suppress 'Ignoring nbits' debug
2023-10-16 10:36:57 -04:00
Duke
31a6b72caf
Merge branch 'dev' into reduce_memory
2023-10-16 06:04:56 -04:00
Duke
14d3ae1785
Reject ztxs with duplicate zkproofs
...
This is a greatly simplified and slightly tweaked version of
af2e3713e2
Their version will detect duplicate zkproofs across transactions while
this code will only detect duplicate zkproofs in a single ztx. If dupes
are found, the tx will be denied entry into the mempool.
This provides most of the benefit (increased CPU cost to attackers) with the
least code change and no annoyance to full node operators. Detecting
duplicate zkproofs across transactions requires a one-time reindex of
all of history, which means significant downtime for nodes.
Since Hush + HSCs have a much more strict policy on number of shielded
outputs and shielded inputs, only detecting duplicate zkproofs in
individual ztxs seems sufficient for now.
No correctly functioning node or wallet will ever create duplicate
zkproofs, so there is no worry of this accidentally affecting normal
users. Currently this is not a consensus rule but it could become one
in the future.
2023-10-13 04:31:41 -07:00
Duke
aa5cbee69c
Remove dead code
2023-09-18 20:57:47 -04:00
Duke
13612bb1c8
Better error message when hashPrevBlock != view.GetBestBlock
2023-06-13 22:58:36 -04:00
Duke
5f9bb80873
Remove unused function
2023-06-12 19:06:50 -04:00
Duke
487fff149c
Remove dead code related to invalid joinsplit sigs
2023-06-12 07:59:53 -07:00
Duke
18f0689695
Avoid ztx validation during IBD if height is less than latest checkpoint
2023-06-12 07:55:45 -07:00
Duke
18eea5cb03
Merge branch 'duke' of https://git.hush.is/hush/hush3 into duke
2023-04-27 07:10:08 -04:00
Duke
d840a0ec62
Only log nbits in ContextualCheckBlockHeader if -debug
2023-04-23 06:56:19 -07:00
Duke
e8dc755f06
Reduce memory usage of CBlockIndex
...
Ported code from https://github.com/zcash/zcash/pull/6192 with various changes needed
for the Hush codebase.
2023-04-13 23:30:23 -04:00
Duke
053e9156a7
Fix progress estimate for HUSH at startup
2023-04-12 10:08:09 -04:00
Duke
15aaf4af44
Remove mempool p2p message #284
2023-04-06 12:59:31 -04:00
Duke
8c8f451be8
Remove dead code from CheckTransaction()
2023-04-06 12:37:10 -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
Duke
bde7273c9f
Remove mapRequest tracking
2023-03-14 15:54:28 -04:00
Duke
e033a2e6eb
Update copyrights to 2023
2023-02-09 18:06:03 -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
onryo
f2f6019620
rm hashFinalSproutRoot
...
related to https://git.hush.is/hush/hush3/issues/248
2022-12-04 13:57:07 +00:00
Jonathan "Duke" Leto
5d2307a709
Update copyrights to 2022
2022-09-19 15:45:30 -07:00
Duke Leto
55703fdb95
Do not ban nodes which relay expired transactions
2022-09-06 10:03:47 -04:00
Duke Leto
a3258de217
less debug by default from IsInitialBlockDownload
2022-07-12 23:29:36 -04:00
Duke Leto
739fe4d1f3
Merge branch 'dev' into danger
2022-07-12 08:32:06 -04:00
Duke Leto
66e9bd835a
less debug
2022-07-08 09:42:54 -04:00
Duke Leto
d078eed3cf
reduce some debugging in non-randomx code
2022-07-02 11:04:28 -04:00
Duke Leto
a45150eac4
yet more debug
2022-07-01 13:10:30 -04:00
Duke Leto
4988ce6f2e
much debug such wow
2022-07-01 12:20:51 -04:00
Duke Leto
90bb8c7cf4
Fix incorrect comment
2022-03-29 10:29:54 -04:00
Duke Leto
a157a5c6a1
update
2022-02-14 14:10:08 -05:00
Duke Leto
b4f38e2a77
Increase nMinDiskSpace to 1GB
2021-12-12 11:12:10 -05:00
Duke Leto
f22cbbf1e2
Cleanup and remove dead code
2021-09-16 14:12:31 -04:00
Duke Leto
49713d8a04
Various things
2021-09-14 16:00:08 -04:00