Commit Graph
100 Commits
Author SHA1 Message Date
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 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
Duke Leto 9bd41875d7 Return getinfo algo as a single key 2022-07-12 23:20:57 -04:00
Duke Leto 4e7c6cda86 Merge branch 'randomx' into dev 2022-07-12 22:13:00 -04:00
Duke Leto d440b7b98c Merge branch 'danger' into dev 2022-07-12 08:32:48 -04:00
Duke Leto 739fe4d1f3 Merge branch 'dev' into danger 2022-07-12 08:32:06 -04:00
Duke Leto dda7233536 Merge branch 'randomx' into dev 2022-07-12 08:31:26 -04:00
Duke Leto a70897966a Only print out randomx debug stuff when -debug=randomx 2022-07-11 18:33:10 -04:00
Duke Leto 66e9bd835a less debug 2022-07-08 09:42:54 -04:00
Duke Leto 8ca330dc68 cleanup 2022-07-04 01:45:05 -04:00
Duke Leto 7dfa3f9475 cleanup 2022-07-04 01:08:45 -04:00
Duke Leto 22f353cb61 Use the current block template as randomxInput 2022-07-03 13:20:13 -04:00
Duke Leto e0651983bc less debug 2022-07-02 11:11:51 -04:00
Duke Leto d078eed3cf reduce some debugging in non-randomx code 2022-07-02 11:04:28 -04:00
Duke Leto 5a742dfc9d Make our initial randomx key longer, at least 9 bytes of entropy 2022-07-02 10:57:01 -04:00
Duke Leto 42f75bd577 Make our randomx input longer with a variable prefix and suffix 2022-07-02 01:52:49 -04:00
Duke Leto 212f984459 Use -ac_name for initial randomx key and ASSETCHAINS_MAGIC for randomx input 2022-07-02 01:03:05 -04:00
Duke Leto 15d254af10 Ignore chain sync verification and relaying when -testnode=1 2022-07-01 21:40:39 -04:00
Duke Leto 71a72c9c60 Prevent coredump when randomxBlockKey changes 2022-07-01 18:37:59 -04:00
Duke Leto 1864b83e99 oops, looks like I never added this test script 2022-07-01 18:04:04 -04:00
Duke Leto 26129a6339 Give the randomx block interval and block lag CLI options 2022-07-01 17:47:03 -04:00
Duke Leto 05cbc86a00 Fix bug where GetNextWorkRequired did not know about randomx 2022-07-01 13:43:51 -04:00
Duke Leto a45150eac4 yet more debug 2022-07-01 13:10:30 -04:00
Duke Leto 4988ce6f2e much debug such wow 2022-07-01 12:20:51 -04:00
Duke Leto 2353f1a433 even more debug 2022-06-30 09:18:58 -04:00
Duke Leto b99772e622 more debug 2022-06-30 09:05:20 -04:00
Duke Leto 5640d21e0e avoid coredump by hardcoding some things 2022-06-29 23:20:25 -04:00
Duke Leto 97dea10b2b more randomx debug 2022-06-29 22:18:05 -04:00
Duke Leto 2b336dccc0 Fix ending height bug and check that ending height is larger than starting height 2022-06-09 06:41:09 -04:00
Duke Leto cc61b19930 Make z_anonsettxdelta work on a tx that is not in our wallet and fix calculation 2022-06-07 23:56:25 -04:00
Duke Leto c218cf1c09 Fix compile errors 2022-06-07 23:19:06 -04:00
Duke Leto 421edc8979 Log txid for double spends and missing anchors
This makes debugging failed transactions much easier.
2022-06-02 21:43:10 -04:00
Duke Leto 967ad5b077 Merge branch 'dev' into danger 2022-06-01 10:04:37 -04:00
Duke Leto 7859fdf7eb More debug 2022-04-23 10:00:35 -04:00
Duke Leto afe1cf153c Uncomment some dpow debugging 2022-04-21 22:35:21 -04:00
Duke Leto 193a1b2a97 Clarify that it is OP_RETURN data 2022-04-20 10:52:12 -04:00
Duke Leto 69cd4f7990 data key (OP_RETURN) is optional in createrawtransaction 2022-04-20 10:51:12 -04:00
Duke Leto 689a360b60 Allow notary addresses in sendmany, fixes #126 2022-04-18 00:32:11 -04:00
Duke Leto 79a6f51c2d Update some comments and docs 2022-03-30 00:21:38 -04:00
Duke Leto 90bb8c7cf4 Fix incorrect comment 2022-03-29 10:29:54 -04:00
Duke Leto 04ac719da2 Merge remote-tracking branch 'origin/dev' into danger 2022-03-29 10:26:40 -04:00
Duke Leto fc214e9644 Get closer to deciding if a block is valid in randomx solver 2022-03-16 11:57:33 -04:00
Duke Leto a2954c4576 Fill in more randomx miner code 2022-03-10 01:09:42 -05:00
Duke Leto 224b5b144c Set a rolling randomx block key 2022-03-09 10:18:56 -05:00
Duke Leto e4abb51fcd update copyright years 2022-03-09 08:53:37 -05:00
Duke Leto c5743d5985 Error checking for randomx vm creation 2022-02-21 09:41:08 -05:00
Duke Leto 8eab796800 WIP to change rx key+input for groups of blocks; use full ac_name in rx key 2022-02-20 23:46:37 -05:00
Duke Leto c9aaf341ae Use randomxInput = blake2b(randomXkey || ac_name) 2022-02-20 23:20:15 -05:00
Duke Leto ad754cf2f0 Use chain magic as a unique starting value for randomx key 2022-02-20 21:55:34 -05:00
Duke Leto 583b0fdeff Calculate randomx hashes 2022-02-20 14:46:42 -05:00
Duke Leto f78479b34e Get randomx flags and allocate cache 2022-02-20 12:57:08 -05:00
Duke Leto 35f6314123 Correctly link against librandomx in build 2022-02-20 11:32:09 -05:00
Duke Leto c3623047f7 Script to generate SDL checkpoint data via getblockmerkletree 2022-02-16 10:57:52 -05:00
Duke Leto a30cdff329 Merge branch 'getblockmerkletree' into dev 2022-02-16 09:11:33 -05:00
Duke Leto ce5c8a54e4 Make it work correctly 2022-02-16 09:10:11 -05:00
Duke Leto c8430665f7 WIP RPC that doesn't quite work yet 2022-02-15 11:26:50 -05:00
Duke Leto a157a5c6a1 update 2022-02-14 14:10:08 -05:00
Duke Leto f971b1765e Merge branch 'dev' into danger 2022-02-03 10:32:23 -05:00
Duke Leto 48cacc162a Merge branch 'dev' of https://git.hush.is/hush/hush3 into dev 2022-01-27 00:17:23 -05:00
Duke Leto 82a65ab452 Merge branch 'master' into dev 2022-01-27 00:17:12 -05:00
Duke Leto 6f707342ea Work even if build/ dir doesn't exist 2022-01-25 23:09:15 -05:00
Duke Leto 94a2c1dfe6 update relnotes 2022-01-25 00:43:30 -05:00
Duke Leto 9a1adba7e8 Merge branch 'dev' 2022-01-25 00:39:18 -05:00
Duke Leto 5a3de32fbd update manpages 2022-01-24 12:16:50 -05:00
Duke Leto 1ef99eeb4f update checkpoints 2022-01-24 12:16:21 -05:00
Duke Leto 15ca83b817 Add randomx to build.sh 2022-01-24 09:56:12 -05:00
Duke Leto 000dc1dc34 change some randomx config params after reading thru the spec+audits 2022-01-24 00:57:00 -05:00
Duke Leto dba86be534 Update randomx argon salt to make it unique 2022-01-23 23:15:12 -05:00
Duke Leto 0b7f57af44 Document possible values of -ac_algo 2022-01-23 01:10:57 -05:00