Commit Graph

2348 Commits

Author SHA1 Message Date
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
Jonathan "Duke" Leto
85f7ac4c8c Enable function names and line numbers in backtraces 2022-09-09 15:14:01 -07:00
Duke Leto
8f49549a1d Fix stacktrace 2022-09-09 09:37:16 -04:00
Jonathan "Duke" Leto
4647bc8525 Try to generate a stacktrace for runtime errors in consolidation 2022-09-09 06:30:06 -07: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
9c5e5c550c Fix compile issues in z_consolidationstatus 2022-09-06 09:20:53 -04:00
Jonathan "Duke" Leto
5c8c7507ec Add z_consolidationstatus RPC 2022-09-06 05:55:03 -07: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
Jonathan "Duke" Leto
0865579e54 Merge remote-tracking branch 'origin/zsweep' into zsweep 2022-08-31 11:09:26 -07:00
Jonathan "Duke" Leto
26fd16cb52 Avoid relaying expired transactions which causes other nodes to ban us 2022-08-31 11:09:18 -07: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
Jonathan "Duke" Leto
4aedeb557b Add z_sweepstatus RPC 2022-08-27 10:35:08 -07: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
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
15d254af10 Ignore chain sync verification and relaying when -testnode=1 2022-07-01 21:40:39 -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
Jonathan "Duke" Leto
e0d22ee170 Enable z_anonsetblockdelta to calculate a delta for a block range; ignore coinbase txs as optimization 2022-06-09 03:00:50 -07: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
Jonathan "Duke" Leto
bdde67c359 Initial implementation of anonsettxdelta + z_anonsetblockdelta 2022-06-07 20:05:49 -07: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
jahway603
04911ae966 Mention z_viewtransaction in gettransaction and getrawtransaction RPC calls 2022-03-18 12:12:40 -04:00
Duke Leto
361998b5d2 Do not erase for now 2021-12-23 17:59:01 -05:00
Duke Leto
66f1f9b076 Remove mention of overwintered from RPC docs. HUSH and all HSCs are all overwintered #19 2021-12-23 12:14:54 -05:00
Duke Leto
b4dc415f1e Log when we are done doing a partial rescan 2021-12-23 10:46:20 -05:00
Duke Leto
8faa5dec89 Erase old unconfirmed wallet transactions that are too old to be accepted by network consensus rules 2021-12-22 12:12:13 -05:00
Duke Leto
cff8d114ea Fix rescan RPC to correctly use the optional rescan height 2021-12-21 20:55:29 -05:00
Duke Leto
e04465983c Port upstream rpc deadlock fix #77 2021-10-30 12:21:58 -04:00
Duke Leto
e00dabb79b Fix bug in listaddresses RPC 2021-09-18 11:25:13 -04:00
Duke Leto
f22cbbf1e2 Cleanup and remove dead code 2021-09-16 14:12:31 -04:00
Duke Leto
977e93cbaa Get rid of wolfssl warning about timing resistance 2021-09-13 13:12:37 -04:00