Commit Graph

24265 Commits

Author SHA1 Message Date
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
fekt
032f9b62da MXE cross-compile fix for Windows builds
CMAKE_SIZEOF_VOID_P EQUAL 8 was added in newer versions of RandomX and breaks cross-compiling with MXE for Windows builds even though they are 64-bit.
3f69ad7b79
2023-12-04 05:10:48 +00: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
fekt
19e18cf37a Temp Mac workaround 2023-11-30 05:01:53 +00: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
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
jahway603
f5f52a7e81 ported Bitcoin PR 7229 to resolve Issue #16 2023-11-22 16:55:19 -05:00
Duke
2b2529259d Update dragonx checkpoints up to 896000 2023-11-22 13:45:00 -08:00
Duke
e7f79e6509 Update hush checkpoints up to 1578000 2023-11-22 12:28:04 -05:00
duke
6d8f261d7a Merge pull request 'Decentralized Devtax' (#305) from danger into duke
Reviewed-on: https://git.hush.is/hush/hush3/pulls/305
2023-11-22 15:09:44 +00: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
cb62670581 Add memoStr to z_listunspent output 2023-11-20 09:40:15 -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
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
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
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
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
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
fb5563d06a Merge pull request 'Reject ztxs with duplicate zkproofs' (#327) from duplicate_proofs into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/327
2023-10-13 11:58:00 +00: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
80bd3f262c Verbosify randomx debug logging in case that helps debug mismatched height coinbase issue 2023-10-12 10:01:01 -04:00