Commit Graph

640 Commits

Author SHA1 Message Date
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
a7939139b2 Merge remote-tracking branch 'origin/abortrescan' into dev
Conflicts:
	src/wallet/wallet.cpp
2023-02-05 18:16:36 -08: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
5d2307a709 Update copyrights to 2022 2022-09-19 15:45:30 -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
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
772160af6d Add more logging for consolidation + sweeping 2022-09-10 19:38:08 -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
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
26fd16cb52 Avoid relaying expired transactions which causes other nodes to ban us 2022-08-31 11:09:18 -07:00
Duke Leto
3730175971 Add some logging when skipping sweep/consolidation 2022-08-27 14:04:53 -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
361998b5d2 Do not erase for now 2021-12-23 17:59:01 -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
f19c70bfa6 Add missing newline to rescan log line 2021-09-09 12:37:04 -04:00
Duke Leto
b4cf845bf3 New listaddresses RPC and z_exportwallet RPC now can be called during RPC warmup 2021-09-02 12:22:04 -04:00
Duke Leto
38089e2d15 Only build witness cache when needed 2021-07-10 02:30:05 -04:00
Duke Leto
2c315965d7 Log data about clearing witness cache 2021-06-26 13:54:57 -04:00
Duke Leto
84f79558d5 Desprout 2021-05-19 21:32:36 -04:00
Duke Leto
4db320355b Small optimizations during rescanning and ChainTip() 2021-05-19 10:51:07 -04:00
Duke Leto
4a536d62dc Update copyrights 2021-04-17 13:03:22 -04:00
Duke Leto
4d252334bf . 2021-04-09 14:53:26 -04:00
Duke Leto
e76dccdb2c Merge branch 'dev' into duke 2021-02-25 15:49:30 -08:00
Duke Leto
8ed3ced34f Log block height in AddToWallet 2021-02-24 12:02:43 -08:00
Duke Leto
89085d44da Merge branch 'dev' into duke 2021-01-28 05:18:45 -05:00
Duke Leto
fe95a524fa Hush dat mempool 2021-01-23 20:51:11 -05:00
Duke Leto
cde6d33ad1 The term 'whitelist' is racist and so we choose to call this feature 'allowlist' 2021-01-10 10:46:22 -05:00
Duke Leto
e3a68dfdfb Hush is the extreme future, Komodo is the KYC past 2020-12-16 22:49:58 -05:00
Duke Leto
c2eec1f7a7 Remove Komodo interest code and various other improvements 2020-12-15 13:14:54 -05:00
Duke Leto
b58c15b9fb update copyrights 2020-12-10 07:45:36 -05:00
Duke Leto
6a30b40415 Once men turned their thinking over to machines in the hope that this would set them free.
But that only permitted other men with machines to enslave them.

      --  Reverend Mother Gaius Helen Mohiam
2020-12-09 07:23:08 -05:00
Duke Leto
18910ca14d Only log when zouts exist and less noise to STDOUT by default 2020-12-06 20:24:02 -05:00
Duke Leto
6c70956f4f Remove -exchange option which jl777 used to steal from KMD miners and notary node ops 2020-12-04 19:31:03 -05:00
Duke Leto
165b98df3d Show remaining blocks in BuildWitnessCache logging 2020-11-15 20:52:43 -05:00
Duke Leto
c737c0dfaf We call them Hush Smart Chains around here 2020-11-15 11:54:06 -05:00
Duke Leto
ebf0df633b Define a new season of anon Hush DPoW notaries 2020-11-15 11:13:15 -05:00
Duke Leto
a23b0e8388 Remove the unsupported concept of staked notaries 2020-11-15 10:28:53 -05:00
Duke Leto
d02fdd4fe5 I originally wrote this function and we call it Hush DPoW around here 2020-11-15 07:34:43 -05:00
Duke Leto
be16f80abc Hush Full Node is now GPLv3
Any projects which want to use Hush code from now on will need to be licensed as
GPLv3 or we will send the lawyers: https://www.softwarefreedom.org/

Notably, Komodo (KMD) is licensed as GPLv2 and is no longer compatible to receive
code changes, without causing legal issues. MIT projects, such as Zcash, also cannot pull
in changes from the Hush Full Node without permission from The Hush Developers,
which may in some circumstances grant an MIT license on a case-by-case basis.
2020-10-21 07:28:10 -04:00
Duke Leto
d7a6ec7e81 less logspam 2020-10-03 07:45:24 -04:00
Duke Leto
5b07e54c3f spam fix 2020-10-03 07:32:31 -04:00