Duke
c8a88e1168
Check null randomx dataset before calling randomx_dataset_item_count
2023-10-07 14:07:34 -04:00
Duke
aa5cbee69c
Remove dead code
2023-09-18 20:57:47 -04:00
Duke
d7cbdcab28
Always log when skipping a zaddr during z_importwallet
2023-09-18 20:44:16 -04:00
Duke
09555fbee2
Allow abortrescan during RPC warmup
...
If we don't, we can get the hilarious error message that the node is Rescanning...
when trying to run abortrescan when the node automatically does a rescan on boot.
2023-09-18 12:43:27 -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
1c45a71b05
Remove dead code
2023-09-03 08:52:28 -04:00
Duke
e2521ac2fa
Remove unused sproutfunds argument
2023-09-03 08:48:06 -04:00
Duke
bd38a12512
Remove useless sprout key from coinsupply RPC
2023-09-03 08:40:06 -04:00
Duke
bacc08e817
Remove sprout data from valuePools
...
This codebase does not support sprout, the data will always be zero/empty
and is essentially useless cruft, so we delete it.
2023-09-03 08:37:19 -04:00
fekt
20ee425ece
Updated checkpoints
2023-06-29 23:31:53 -04:00
fekt
b7359ef70e
Update chainparamsseeds.h
2023-06-29 21:16:46 -04:00
nullfekt
03071ef0cd
Bump version
2023-06-29 20:23:28 -04:00
Duke
9508095186
Remove unused code
2023-06-29 11:48:30 -04:00
Duke
9d2720d118
Merge branch 'duke' into dev
2023-06-20 05:17:52 -07: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
31cc5ee901
Remove unused code
2023-06-17 21:22:41 -04:00
Duke
97c7e814cf
Add checkpoints for DRAGONX
2023-06-15 15:47:14 -04:00
Duke
b8ae39ccc7
Enable the option for dragonx checkpoints
2023-06-15 10:25:59 -04:00
Duke
5f9bb80873
Remove unused function
2023-06-12 19:06:50 -04:00
Duke
67c7632062
Remove dead code
2023-06-12 19:06:41 -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
fc921eba57
Remove dead code
2023-06-09 00:00:42 -04:00
Duke
04c28e3eef
Disable run-time asserts in addrman
...
Run-time asserts are a horrible anti-pattern littered across code
inherited from BTC. One could maybe argue they are the right thing to do
in some situations but not when managing the peer database. Crashing our
full node and potentially corrupting our wallet or block index is INSANE
in the case of some inconsistencies in peers.dat .
2023-05-20 06:12:40 -07:00
jahway603
121ec4b9d4
successfully built with gcc13.x
2023-05-16 17:29:13 -04:00
jahway603
c902701715
unfuxing to fix https://git.hush.is/hush/hush3/issues/293
2023-05-15 13:55:20 -04:00
jahway603
b3a6c2bee1
Import RandomX from 040f4500a6 without audits/ directory
2023-05-15 13:47:05 -04:00
Duke
18eea5cb03
Merge branch 'duke' of https://git.hush.is/hush/hush3 into duke
2023-04-27 07:10:08 -04:00
Duke
519743f704
Only log to stderr in CalculateNextWorkRequired and GetNextWorkRequired if -debug
2023-04-23 07:03:05 -07:00
Duke
d840a0ec62
Only log nbits in ContextualCheckBlockHeader if -debug
2023-04-23 06:56:19 -07:00
Duke
fbda7b8dec
Fix compile issues
2023-04-22 19:28:24 -04:00
Duke
7102d50a47
Try to prevent #266
...
We seem to have a bug that we don't find a peer when looking for a peer
in peers.dat . Instead of doing an assertion and crashing the node,
just keep iterating in the loop. The code which computes nId may have an
off-by-one error, such that it looks up an incorrect bucket position and
doesn't find a valid nId.
2023-04-22 15:54:13 -07:00
Duke
053e9156a7
Fix progress estimate for HUSH at startup
2023-04-12 10:08:09 -04:00
Duke
852f747cbf
Remove dead code
2023-04-06 13:39:42 -04:00
Duke
c1ec1b0e95
Remove dead code
2023-04-06 13:31:07 -04:00
Duke
fba0d4136d
Remove code for unsupported chains
2023-04-06 13:28:14 -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
15aaf4af44
Remove mempool p2p message #284
2023-04-06 12:59:31 -04:00
Duke
f0ee52a94d
Remove dead code
2023-04-06 12:44:37 -04:00
Duke
4c5649454b
Fix const-ness of ReadTxIndex
2023-04-06 12:44:30 -04:00
Duke
8c8f451be8
Remove dead code from CheckTransaction()
2023-04-06 12:37:10 -04:00
Duke
b4be7aa19b
malloc_trim does not seem to exist on FreeBSD
2023-04-06 05:40:30 -07:00