Commit Graph
100 Commits
Author SHA1 Message Date
Duke 2059dbd79f Merge branch 'dev' into wolfssl 2024-01-27 11:43:13 -05:00
Duke 04b122a067 Merge branch 'duke' into dev 2024-01-11 07:36:29 -08:00
Duke b70370123e Fix boost download link 2024-01-07 23:34:36 -05:00
Duke 323d2134a1 Boost download has been broken for over a week, so we will host our own 2024-01-07 23:34:25 -05:00
Duke 31fce487d9 Fix boost download link 2024-01-07 23:32:56 -05:00
Duke 283066fda4 Merge branch 'duke' of https://git.hush.is/hush/hush3 into duke 2024-01-07 23:25:42 -05:00
Duke c9f7640699 Boost download has been broken for over a week, so we will host our own 2024-01-07 23:25:35 -05:00
Duke a23ab58af6 Start removing unused gateway code 2024-01-07 13:20:17 -08:00
Duke d5c5c6008c Remove unused code 2024-01-07 13:05:31 -08:00
Duke c56a9e31a0 Merge branch 'duke' of https://git.hush.is/hush/hush3 into duke 2024-01-07 10:36:16 -08:00
Duke 7d73ebd7af Remove voutsum variable which is calculated but never used 2024-01-07 10:25:36 -08:00
Duke 196e00c786 Remove unused variables 2024-01-07 10:24:12 -08:00
Duke 68427d0979 Remove unused code 2024-01-07 11:15:08 -05:00
Duke c1ab82a881 Remove unused variables and add a const 2024-01-06 23:57:39 -08:00
Duke 4054140b21 RandomX interval and block lag are consensus changes and will never change at run-time, so they can be static 2024-01-06 23:47:00 -08:00
Duke 447f1f50f3 SMART_CHAIN_SYMBOL is always nonzero 2024-01-06 23:39:24 -08:00
Duke b9937bc5d2 Release randomx cache in normal exit 2024-01-06 23:37:48 -08:00
Duke 765487bb14 Remove unused code 2024-01-06 23:30:19 -08:00
Duke 1b5422eb2d Dynamically determine thread count for dataset init 2024-01-07 02:19:03 -05:00
Duke 56ef56b136 randomx_get_flags() automatically sets all flags except RANDOMX_FLAG_FULL_MEM, RANDOMX_FLAG_LARGE_PAGES and RANDOMX_FLAG_SECURE 2024-01-06 22:30:41 -08:00
Duke 38dc994731 Remove unused code 2024-01-06 21:49:17 -05:00
Duke 08e9c5d743 Merge branch 'dev' into duke 2024-01-06 21:47:53 -05:00
Duke 4ed576a7e2 Explain the importance of p2p encryption 2024-01-05 13:06:21 -08:00
Duke a358acab0b More info about ciphersuites 2024-01-05 13:02:36 -08:00
Duke ccc86839b9 More details about p2p encryption 2024-01-05 12:48:35 -08:00
Duke 172e6f7977 Update relnotes for 3.10.1 2024-01-02 06:14:40 -08:00
Duke ee17cbe635 Update manpages 2024-01-02 09:07:37 -05:00
Duke 9354506770 Start 3.10.1 relnotes 2024-01-01 20:25:11 -08:00
Duke d35ac5eac7 Update dragonx checkpoints 2023-12-31 09:32:16 -05:00
Duke 05ee318913 Update hush checkpoints 2023-12-31 08:58:00 -05:00
Duke 6635ab9e34 Bump version and copyright year 2023-12-31 06:55:58 -05:00
Duke ae08c6ef56 Remove unused code 2023-12-27 21:06:33 -05:00
Duke e5dc287d2f Cleanup 2023-12-27 20:35:11 -05:00
Duke 90133dbc0e Also log flush mode in FlushStateToDisk() 2023-12-27 17:56:44 -05:00
Duke 1db3fb0429 Fix warning 2023-12-27 17:06:47 -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 19aa83ca80 You can now estimate future blocktimes of Arrakis Chains with: ./contrib/block_time.pl 5555555 DRAGONX 2023-12-27 12:53:07 -05:00
Duke 2a2391f0f9 Log when trimming block solutions 2023-12-27 11:43:53 -05:00
Duke 497ace0922 Add debug output to stderr when decode_hex() is called on invalid hex input 2023-12-27 08:38:24 -05:00
Duke 943ffbc1bf Remove unused variables in BitcoinMiner/RandomXMiner which saves about 3.5KB of memory per mining thread 2023-12-27 08:37:20 -05:00
Duke d8840beb3b Remove unused code 2023-12-27 08:36:24 -05:00
Duke 0f5e291f9f Remove unused pubkeys variable 2023-12-27 08:35:50 -05:00
Duke 77ab75c01d Document hush_block2pubkey33() 2023-12-27 08:35:22 -05:00
Duke 43aa4a7d90 Create a local variable instead of modifying the global ASSETCHAINS_SCRIPTPUB 2023-12-25 14:05:05 -05:00
Duke c33bd61480 Fix typo in default clientname 2023-12-06 11:19:40 -05:00
Duke 901152cc50 Also log incoming script when we see an incorrect coinbase pubkey 2023-12-03 23:31:16 -05:00
Duke 04a705444b Improve rpc docs for getblocktemplate 2023-12-03 19:01:45 -08:00
Duke 429e25a3de Log ASSETCHAINS_SCRIPTPUB to stderr when we see an incorrect coinbase pubkey 2023-12-03 18:51:55 -08:00
Duke 540bc9b287 Document git tag command in release process, fixes #364 2023-12-02 10:27:16 -05:00
Duke b0027d8c64 Merge branch 'dev' of https://git.hush.is/hush/hush3 into dev 2023-11-30 09:53:33 -05:00
Duke 36364bad87 Merge branch 'master' into dev 2023-11-28 10:51:32 -05:00
Duke f85976f620 Merge branch 'dev' 2023-11-28 10:47:59 -05:00
Duke 09bdb25959 Update man pages 2023-11-27 20:26:59 -05:00
Duke 382861de2b Fixes #362
Array index 2 does not exist, which caused the foundersrewardaddress
key of getblocktemplate to be incorrect. It would either show the next
address in the list or be empty if it caused a read past the end of the
2D DEVTAX_DATA array. This is what happens in gcc 9.4.0 but since this
is technically Undefined Behavior according to the C Standard it could
cause a crash or even make demons fly out of your nose.

See http://catb.org/jargon/html/N/nasal-demons.html for details.
2023-11-27 18:45:49 -05:00
Duke 4facbadc6a Update relnotes 2023-11-27 08:32:09 -05:00
Duke 881af41b4a Update relnotes for 3.10.0 2023-11-24 08:11:54 -05:00
Duke 51c5d03215 Fix notary code 2023-11-24 07:18:54 -05:00
Duke 6db872acd0 Merge branch 'dev' into duke 2023-11-22 14:05:31 -08:00
Duke 2b2529259d Update dragonx checkpoints up to 896000 2023-11-22 13:45:00 -08:00
Duke 87642c4895 Fix bug in checkpoints.pl using numeric instead of string equality 2023-11-22 13:30:43 -08:00
Duke e7f79e6509 Update hush checkpoints up to 1578000 2023-11-22 12:28:04 -05:00
Duke b12e6c2d78 Merge branch 'dev' into duke 2023-11-22 09:58:38 -05:00
Duke 620ca45efc Cleanup notary code 2023-11-22 09:48:09 -05:00
Duke d0c3d7587e Add memoStr to RPC help of z_listunspent and z_listreceivedbyaddress 2023-11-22 09:43:47 -05:00
Duke 45a5d25230 Update next consensus hardfork to be block 1605555 on Dec 16th 2023 2023-11-22 08:00:26 -05:00
Duke 5f5983ad86 Update production devtax data 2023-11-22 07:51:00 -05:00
Duke 37cff3924d Fix #346 2023-11-20 17:05:42 -08:00
Duke b4c60c5f4e Update relnotes 2023-11-20 10:21:17 -05:00
Duke cb62670581 Add memoStr to z_listunspent output 2023-11-20 09:40:15 -05:00
Duke cb60ecaef9 Update to take an optional file of addresses 2023-11-19 08:32:23 -05:00
Duke 11593da7f2 Merge branch 'dev' into danger 2023-11-18 08:12:29 -05:00
Duke e695340133 Update RPC help for z_listreceivedaddress 2023-11-15 07:54:30 -05:00
Duke f442823963 Fix unoptimized libraries in depends
This was a bug we inherited from BTC which causes some dependencies to
be built without optimization essentially replacing -O2 -pipe with
-O0 because cxxflags is assigned to instead of appended to.

We no longer have zeromq so for us this fixes the fact that bdb is being
compiled without optimization.

https://github.com/bitcoin/bitcoin/pull/22840
2023-11-13 19:44:28 -08:00
Duke 9a8d9f4cba Merge branch 'dev' into danger 2023-11-13 10:26:19 -05:00
Duke 94a48329ad Return help output if no address is given to z_listreceivedaddress 2023-11-13 10:22:04 -05:00
Duke 06876b1cc9 Bump version to 3.10.0 2023-11-13 08:40:04 -05:00
Duke 4570277b52 Bump protocol version 2023-11-12 14:30:52 -05:00
Duke 1f5fb24985 Revert to our custom RandomX config options 2023-11-07 09:32:45 -05:00
Duke 6029b3d571 Update to RandomX v1.2.1
Commit 102f8acf90a7649ada410de5499a7ec62e49e1da
2023-11-07 09:29:03 -05:00
Duke 6f78cad0be Merge branch 'duke' into dev 2023-11-07 07:51:14 -05:00
Duke 0936d4c2c2 Add option to disable automatic resending of txs
This option can disable automatic resending of txs. It defaults to the
normal behavior of resending txs automatically and resending can be disabled
with -resendtx=0 .

This is not intended for normal usage and is undocumented for now. It is
useful for devs who are debugging internals and also when rescanning large
wallets. We seem to have either some bugs and/or performance problems when
rescanning wallets with many txs.
2023-11-06 11:53:59 -05:00
Duke a554377225 Clean up 2023-10-31 10:30:18 -04:00
Duke 7eb9d75b94 Support * or ANY_ZADDR in z_mergetoaddress 2023-10-30 09:31:48 -04:00
Duke f0395196ec Do not resend wallet txs during IBD, rescan or loading blocks 2023-10-29 21:45:30 -04:00
Duke b73297f1f5 More debugging when resending txs 2023-10-25 13:17:10 -04:00
Duke f48181a120 Add help for -consolidationinterval which was missing 2023-10-25 13:16:47 -04:00
Duke d922526642 Merge remote-tracking branch 'origin/dev' into danger 2023-10-25 12:44:18 -04:00
Duke ac315bcb0d Merge remote-tracking branch 'origin/dev' into duke 2023-10-25 12:44:00 -04:00
Duke d99ab44bfb Fix implementation of GetBlockHash in CBlockIndex and CDiskBlockIndex 2023-10-23 22:41:29 -04:00
Duke 4642a35f06 Stop building witnesses if abortrescan is called #331 2023-10-23 10:47:12 -04:00
Duke ae0ff73548 Stop building witnesses if shutdown requested, fixes #330 2023-10-23 09:49:50 -04:00
Duke 41d6d037d8 Log number of SpendDescriptions and note value if an invalid sapling spend happens 2023-10-23 09:43:40 -04:00
Duke a1cf2ef976 Log txid being relayed to stdout 2023-10-23 09:43:01 -04:00
Duke 1dc4920186 Merge branch 'dev' of https://git.hush.is/hush/hush3 into dev 2023-10-17 14:18:20 -04:00
Duke e03582e856 Fix shell quoting of dragonx-cli 2023-10-17 14:18:14 -04: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 5cf38dd5db Merge branch 'dev' into danger 2023-10-13 09:27:38 -04:00
Duke 14d3ae1785 Reject ztxs with duplicate zkproofs
This is a greatly simplified and slightly tweaked version of
https://github.com/PirateNetwork/pirate/commit/af2e3713e286d61353edffd0b4c89c931b455cb4

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 80bd3f262c Verbosify randomx debug logging in case that helps debug mismatched height coinbase issue 2023-10-12 10:01:01 -04:00