Commit Graph

2395 Commits

Author SHA1 Message Date
Duke
d7cbdcab28 Always log when skipping a zaddr during z_importwallet 2023-09-18 20:44:16 -04:00
Duke
7c45e66fbe Also return start and ending height in z_getstats json 2023-09-08 08:28:14 -04:00
Duke
4aca3493e3 Even more zstats
Example data for the entire history of the current HUSH mainnet :

  ./src/hush-cli z_getstats 1 1487622
{
  "total_ztxs": 414962,
  "total_zins": 798083,
  "total_zouts": 3312131,
  "total_ztxs_10_or_more_zins": 6789,
  "total_ztxs_25_or_more_zins": 1779,
  "total_ztxs_50_or_more_zins": 688,
  "total_ztxs_100_or_more_zins": 174,
  "total_ztxs_10_or_more_zouts": 2855,
  "total_ztxs_25_or_more_zouts": 394,
  "total_ztxs_50_or_more_zouts": 314,
  "total_ztxs_100_or_more_zouts": 208,
  "avg_zins": 1.923267672702561,
  "avg_zouts": 7.981769415030774,
  "largest_zins": 517,
  "largest_zins_txid": "69f126edd5a0189fbbe84b0824eb48e16eddf180e7d5d4f34c4296d0f868ac7f",
  "largest_zouts": 210,
  "largest_zouts_txid": "2a3155f73fab9191978e77e03be8ec7167372c4549113a6eb3f8a9d343f749ba"
}
2023-09-05 11:30:27 -04:00
Duke
ff7a597032 Lots of more data for z_getstats 2023-09-05 00:35:11 -04:00
Duke
7ea88bb303 Return total zins+zouts in json 2023-09-04 09:03:06 -04:00
Duke
8eaba566fd Force avg zins/zouts to be a double 2023-09-04 08:57:23 -04:00
Duke
0f4956dcd5 Initialize variables in z_getstats correctly 2023-09-04 08:50:05 -04:00
Duke
96ae2d61ca z_getstats RPC that calculates various stats about ztxs in a block range 2023-09-04 08:22:12 -04:00
Duke
fc69220e78 Remove unused code 2023-06-17 21:38:39 -04:00
Duke
b03c8f3108 Remove unused code 2023-06-17 21:31:05 -04:00
Duke
533356ce63 Remove more dead code related to interest 2023-04-06 13:22:20 -04:00
Duke
c69a47dd61 Remove dead code relating to interest 2023-04-06 13:05:20 -04:00
Duke
b4be7aa19b malloc_trim does not seem to exist on FreeBSD 2023-04-06 05:40:30 -07:00
Duke
8126e706c6 Optional OP_RETURN in z_sendmany 2023-03-24 16:20:17 -04:00
Duke
bde7273c9f Remove mapRequest tracking 2023-03-14 15:54:28 -04:00
Duke
560f8e2f41 Remove unused GetRequestCount() 2023-03-14 14:44:14 -04:00
Duke
e033a2e6eb Update copyrights to 2023 2023-02-09 18:06:03 -05:00
Duke
2c9bd5dd18 abortrescan 2023-02-09 17:17:00 -05:00
Duke
b360a2395a Allow abortrescan to be called via RPC 2023-02-09 13:45:45 -08:00
Duke
a7939139b2 Merge remote-tracking branch 'origin/abortrescan' into dev
Conflicts:
	src/wallet/wallet.cpp
2023-02-05 18:16:36 -08:00
zanzibar
512da314a5 BIP155 (addrv2)
Tor v3 + i2p
2023-01-06 15:23:22 +00:00
Jonathan "Duke" Leto
ca52c6beb8 Avoid potential coredump if pindex is NULL 2022-11-11 04:26:18 -08: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
Jonathan "Duke" Leto
35df2aa91f Add copyright to files missing Hush copyright lines 2022-09-21 08:48:42 -07:00
Jonathan "Duke" Leto
5d2307a709 Update copyrights to 2022 2022-09-19 15:45:30 -07:00
Jonathan "Duke" Leto
2de20daa66 Document z_sendmany 'z' ... 2022-09-19 15:13:47 -07:00
Jonathan "Duke" Leto
3a36f544aa Get rid of boost stacktrace stuff 2022-09-19 07:15:08 -07:00
Duke Leto
e1590836fd Use the correct variable for missing witness error 2022-09-16 23:17:08 -04:00
Jonathan "Duke" Leto
0938bd6b7b Log outpoint for failed Sapling witness lookup 2022-09-16 19:23:25 -07: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
Jonathan "Duke" Leto
f796d5d14e Support multiple zsweepexclude zaddrs 2022-09-16 10:08:53 -07:00
Jonathan "Duke" Leto
6b79b3e12c Merge branch 'zsweep' of https://git.hush.is/hush/hush3 into zsweep 2022-09-16 05:48:24 -07:00
Jonathan "Duke" Leto
77d7aaba96 Return an array of addresses to exclude from zsweep in zsweep_status 2022-09-16 05:47:35 -07: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
jahway603
0c22e26358 updated z_sweepstatus 2022-09-12 23:47:49 -04:00
jahway603
ca3bb90e0c skip excluded address from zsweep 2022-09-12 23:30:59 -04:00
jahway603
78f5021cc2 starting to support zsweepexclude functionality 2022-09-12 22:38:53 -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
jahway603
b06c378851 removed unused function mta_find_output 2022-09-11 18:01:44 -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