100 Commits
Author SHA1 Message Date
Duke Leto 40542bf687 Merge branch 'dev' into wolfssl 2024-02-12 10:18:25 -05:00
Duke Leto 8e2715a734 wolfssl 4.7.0 2024-01-27 11:44:07 -05:00
Duke Leto 0e0b1cca97 Attempt to try different randomx flags 2024-01-06 21:33:23 -08:00
Duke Leto 21530ba159 Remove unused code 2024-01-06 21:24:57 -08:00
Duke Leto 01ff5c81f6 Improve some comments and ensure backcompat on HUSH mainnet
Some comments turned out to be wrong and some could be more helpful.
It turns out that when AveragingWindowTimespan was changed to fix a HUSH
mainnet bug long ago, that introduced a bug for HSC's that do not use
a 75s block time. Since the default is 60s that likely means all HSC's that will
be created. There were no production HSC's in use at the time of that bugfix,
so the bug went unnoticed until DRAGONX was launched. The bug then manifested
as the DRAGONX difficulty bug, which cause the difficulty to never correct down,
only up and lead to extremely long block times on DRAGONX mainnet.

This code change ensures that HUSH mainnet uses the same hardcoded AWT as it
did previously and all other HSC's will use params.AveragingWindowTimespan() ,
including DRAGONX mainnet.

This seems less dangerous than changing AveragingWindowTimespan() on HUSH mainnet.
2022-12-06 14:23:53 -05:00
Duke Leto 1b7f200d29 Fix typo in getsnapshot docs 2022-12-01 14:55:53 -05:00
Duke Leto b7adb511a6 cleanup 2022-11-15 19:13:31 -05:00
Duke Leto 665f895134 Optimize inner mining loop 2022-11-15 14:40:10 -05:00
Duke Leto c8b2163c1c Optimize inner mining loop 2022-11-15 14:21:45 -05:00
Duke Leto 1a4e8d4acf Initialize randomx dataset with 2 threads 2022-11-15 14:11:55 -05:00
Duke Leto c55d1cbc5f Destroy randomx VM when we are done with it 2022-11-15 14:02:02 -05:00
Duke Leto d3b948005c indentation 2022-11-15 13:44:47 -05:00
Duke Leto 3dbe8d3c6b indentation 2022-11-15 13:43:10 -05:00
Duke Leto 0926dfca75 Merge branch 'duke' into awt 2022-11-12 09:25:36 -05:00
Duke Leto 81f0c7755e Code to test exact cause of the 'up only' diff bug 2022-11-12 09:22:10 -05:00
Duke Leto c108db8f3c Speed up randomx hashing by ~60X per core
These code changes move various randomx setup code out of the inner mining loop,
which significantly increases hashrate. Currently seeing ~60 hashes/second/core
on a Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz.

This code may have memory leaks, it does not destroy the randomx VM since it was
causing coredumps. It also seems to use more memory, I am only able to mine on 2
cores with 16GB of RAM. Using more cores runs out of memory.
2022-11-11 06:42:51 -05:00
Duke Leto b94ec80307 Use RANDOMX_FLAG_FULL_MEM 2022-11-10 22:38:04 -05:00
Duke Leto c81b49c96c fix params for testcoins 2022-11-08 09:55:46 -05:00
Duke Leto 24dc8252a3 Add scripts to research randomx difficulty problems 2022-11-08 09:29:05 -05:00
Duke Leto 591b9e4c7d Merge branch 'dev' into duke 2022-11-08 09:17:00 -05:00
Duke Leto 5aea752337 Fix compiler warnings 2022-11-08 09:16:27 -05:00
Duke Leto 6eccab3e98 Add missing newline in rxdebug and add debugging about solutionTargetChecks 2022-11-08 09:07:49 -05:00
Duke Leto c36464ee1b Fix bug in getrescaninfo
There was a small bug in getrescaninfo where when a rescan first starts, it
shows rescanning=true but progress=100% because rescanHeight was not initialized
correctly.

Also update our rescanHeight while we are fast-forwarding thru blocks which are
before the current wallet birthday.
2022-10-28 17:09:40 -04:00
Duke Leto 6fda12612d Initial implementation of abortrescan 2022-10-19 05:12:12 -04:00
Duke Leto 29ec7b5fb6 Set rescanStartHeight before we lock cs_main + cs_wallet 2022-10-17 07:13:50 -04:00
Duke Leto 71923e3ffb Initial implementation of getrescaninfo 2022-10-17 07:03:32 -04:00
Duke Leto fae0a21257 Add more details to release process 2022-09-27 08:34:42 -04:00
Duke Leto 804852e99c Document RandomX 2022-09-23 06:57:31 -04:00
Duke Leto 2eada0a1bd Add zsweep+consolidation docs originally written by jahway603 2022-09-23 05:47:50 -04:00
Duke Leto 3606703297 Update relnotes for 3.9.2 'Anecdotal Axolotl' 2022-09-21 23:22:37 -04:00
Duke Leto 7e6220afac Add release notes details to release process docs 2022-09-21 22:18:19 -04:00
Duke Leto ab83649c1a Add gen-zaddrs.pl and improve docs 2022-09-21 09:04:32 -04:00
Duke Leto 9e719cf3e7 Live dangerously since we don't care about intermittent build.sh failures 2022-09-19 22:22:11 -04:00
Duke Leto 4b2135f156 Add some basic error-checking 2022-09-19 22:09:37 -04:00
Duke Leto 27736e80ae Make this script take the branch and number of jobs as args 2022-09-19 22:05:18 -04:00
Duke Leto 67cccc23ef Merge branch 'dev' of https://git.hush.is/hush/hush3 into dev 2022-09-19 21:50:24 -04:00
Duke Leto 44e1836e52 Make this script executable 2022-09-19 21:49:49 -04:00
Duke Leto 6845ec2087 Even more details about checkpoints 2022-09-19 13:32:41 -04:00
Duke Leto d52ae97026 Update checkpoint data up to block 1087000 2022-09-19 13:25:26 -04:00
Duke Leto 53343051e8 Fix bug in calculating the last checkpointed block that is used in the stats 2022-09-19 13:25:07 -04:00
Duke Leto 92b387baed Allow custom starting height to generate checkpoint data 2022-09-19 13:16:20 -04:00
Duke Leto 0fb9db169c Basic CLI help and error checking for a valid stride 2022-09-19 13:12:37 -04:00
Duke Leto 473ec30404 More checkpoint tribal knowledge 2022-09-19 13:06:39 -04:00
Duke Leto 50c4af69f1 More details about the release process 2022-09-19 12:54:03 -04:00
Duke Leto afcedbd06a Update docs about make manpages 2022-09-19 11:43:37 -04:00
Duke Leto bf039e3665 Do not echo this echo command when running 2022-09-19 11:42:13 -04:00
Duke Leto c7c2a98eaf Update manpages and add 'make manpages' target 2022-09-19 11:41:31 -04:00
Duke Leto 7e53907bdc Update version to 3.9.2 2022-09-18 11:08:09 -04:00
Duke Leto 7036974042 Explain checkpoints a bit 2022-09-18 10:53:47 -04:00
Duke Leto 8e1ba0658d Ensure pindexPrev is not null before mining against it in both BitcoinMiner and RandomXMiner 2022-09-18 10:27:48 -04:00
Duke Leto 9b1b6fdc2e Document checkpoints better 2022-09-18 00:24:10 -04:00
Duke Leto 711cd8e234 Explain protocol version stuff 2022-09-18 00:05:27 -04:00
Duke Leto 73789ba26b Yep 2022-09-17 23:38:49 -04:00
Duke Leto 5a145acd46 Add script to automate string replaces 2022-09-17 23:35:27 -04:00
Duke Leto 95f6a14ac3 Document updating hushd version 2022-09-17 23:31:47 -04:00
Duke Leto 9dd4dcc7f9 Update release docs 2022-09-17 23:17:35 -04:00
Duke Leto 427de86a3b Merge branch 'master' into dev 2022-09-17 10:08:27 -04:00
Duke Leto e1590836fd Use the correct variable for missing witness error 2022-09-16 23:17:08 -04:00
Duke Leto 62c9bce6f7 Correct error messsage about invalid zsweepexclude address 2022-09-16 14:33:37 -04:00
Duke Leto 35f376c8b5 Fix bugs in excluding multiple zsweep zaddrs and report all excluded zsweep zaddrs in z_sweepstatus 2022-09-16 14:28:51 -04:00
Duke Leto 12fa3013ce Fix definition of sweepExcludeAddresses 2022-09-16 13:11:32 -04:00
Duke Leto 2ddf539185 Check if hush-cli binary exists before using it 2022-09-15 19:41:28 -04:00
Duke Leto b07f9db06d Update for 75s blocks 2022-09-15 19:39:57 -04:00
Duke Leto f90715192e Do not delete expired txs for now, it doesn't work correctly, and log more info about them 2022-09-15 09:38:48 -04:00
Duke Leto 908240d07f Make z_sweepstatus match up with config option name 2022-09-13 01:00:56 -04:00
Duke Leto 88d3f11664 Save excluded address to be used later 2022-09-13 00:18:44 -04:00
Duke Leto b6eb22fff8 Merge branch 'delete_zmq' into dev 2022-09-12 20:08:34 -04:00
Duke Leto 19b65600c2 Delete a zmq dingleberry 2022-09-12 20:07:16 -04:00
Duke Leto f11d50d17e Update manpages to remove zmq options 2022-09-12 19:54:32 -04:00
Duke Leto 1799c6c9bf Remove zeromq support 2022-09-12 19:35:27 -04:00
Duke Leto bd4d2d71d3 Merge branch 'dev' into zsweep 2022-09-12 09:40:35 -04:00
Duke Leto bd9006623c Avoid coredumps in ReacceptWalletTransactions and log the situation, which is possibly caused by corrupt wallet tx data 2022-09-11 22:41:03 -04:00
Duke Leto 5b15d790f9 Parse sweep+consolidation intervals on startup, add consolidationinterval config option, change consolidation interval default to 25, only validate consolidatesaplingaddress if consolidation is enabled 2022-09-11 21:56:21 -04:00
Duke Leto 9347b1fa12 Sweep Interval should be 10 to match other defaults 2022-09-11 20:18:01 -04:00
Duke Leto 2a1cad1e5f Fix bug in z_sweepstatus 2022-09-11 20:10:28 -04:00
Duke Leto 772160af6d Add more logging for consolidation + sweeping 2022-09-10 19:38:08 -04:00
Duke Leto 1259dd512d Fix 'not enough conversion params' bug 2022-09-10 19:37:34 -04:00
Duke Leto 8f49549a1d Fix stacktrace 2022-09-09 09:37:16 -04:00
Duke Leto 61ecffd074 Change default sweep interval to 10 and consolidation to be deterministic every 45 blocks 2022-09-06 14:30:06 -04:00
Duke Leto 8d8f988a19 Delete expired txs from the wallet, since they can never be included in a block 2022-09-06 11:19:46 -04:00
Duke Leto 8581012163 Sweep operations might not create any txs, so make logging more precise 2022-09-06 11:19:16 -04:00
Duke Leto 456cf77b65 Exit RelayTransaction early if we have no nodes to relay to 2022-09-06 10:08:24 -04:00
Duke Leto 55703fdb95 Do not ban nodes which relay expired transactions 2022-09-06 10:03:47 -04:00
Duke Leto 9c5e5c550c Fix compile issues in z_consolidationstatus 2022-09-06 09:20:53 -04:00
Duke Leto 0c2487c427 Throw error in wallet if ReadBlockFromDisk fails 2022-09-03 09:08:58 -04:00
Duke Leto 63f9e22308 log the function name correctly 2022-08-31 14:15:38 -04:00
Duke Leto 4573a8336f Fix compile error 2022-08-31 14:10:40 -04:00
Duke Leto 88263995c8 Do not coredump if pnode=NULL in RelayTransaction 2022-08-30 22:27:34 -04:00
Duke Leto 57baf25b02 Do not add to amountConsolidated until we successfully create the tx and only do it once 2022-08-30 22:05:41 -04:00
Duke Leto b50c51f797 Log value of status and correctly return status value instead of always returning success, derp 2022-08-30 21:05:57 -04:00
Duke Leto b4b6988eb0 Log when we use fee=0 for small inputs 2022-08-30 21:05:27 -04:00
Duke Leto 702c2163cd Log if we have no zsweepaddress or an invalid zsweepaddress 2022-08-30 21:05:09 -04:00
Duke Leto 1748f0f2a3 Improved logging and error checking in consolidation and sweeping 2022-08-27 22:31:40 -04:00
Duke Leto 0e3889c96a List z_sweepstatus in RPC list 2022-08-27 15:03:11 -04:00
Duke Leto 3730175971 Add some logging when skipping sweep/consolidation 2022-08-27 14:04:53 -04:00
Duke Leto 4eec81b191 Fix some issues in z_sweepstatus 2022-08-27 13:57:00 -04:00
Duke Leto 02ef714901 Commit forgotten files 2022-08-25 09:26:10 -04:00
Duke Leto c6e5b07a59 You might be a king or a little street zsweeper, but sooner or later you will dance with the reaper 2022-08-24 23:38:19 -04:00
Duke Leto afd3f93e2e Throw error in wallet if ReadBlockFromDisk fails 2022-07-18 10:43:22 -04:00
Duke Leto a3258de217 less debug by default from IsInitialBlockDownload 2022-07-12 23:29:36 -04:00