Commit Graph

3134 Commits

Author SHA1 Message Date
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
Duke Leto
31fa46e2a1 Extra debug for notary stuff 2021-09-02 15:49:57 -04:00
Duke Leto
4fecf72ec8 Remove dead code 2021-09-02 15:01:58 -04:00
Duke Leto
59fbcbb541 . 2021-09-01 22:34:21 -04:00
Duke Leto
b30fae8238 clean up some more 2021-09-01 11:13:08 -04:00
Duke Leto
5c83c1b4e7 Cleanup 2021-09-01 11:02:19 -04:00
Duke Leto
e424a997a7 Cleanup 2021-08-26 00:08:37 -04:00
Duke Leto
b505660489 Clarify some docs related to Overwinter, which HUSH and all HSCs have 2021-08-22 14:57:49 -04:00
Duke Leto
40853af335 Remove things related to PoS 2021-08-19 19:30:03 -04:00
Duke Leto
8d9ff5fecf Report invalid taddrs to stderr 2021-07-21 00:38:44 -04:00
Duke Leto
a2ad4b0485 no sprout round here 2021-07-21 00:29:06 -04:00
Duke Leto
91383d0bc5 . 2021-07-10 12:56:43 -04:00
Duke Leto
b7be25e2d5 Thanks to hellcatz for this patch 2021-06-26 14:42:40 -04:00
Duke Leto
e829822041 logging to help debug window stats being wrong after restart 2021-06-26 12:27:38 -04:00
Duke Leto
ea9890ebdf Merge remote-tracking branch 'origin/zindexdb' into zindexdb 2021-06-21 18:00:23 -04:00