Commit Graph

615 Commits

Author SHA1 Message Date
Duke Leto
dd95b1471c desprout 2020-06-06 14:48:16 -04:00
Duke Leto
f13171efc6 desprout 2020-06-06 05:14:21 -04:00
Duke Leto
86a98587a1 desprout 2020-06-05 10:14:52 -04:00
Duke Leto
5be12774f4 desprout 2020-06-02 02:40:18 -04:00
Duke Leto
eec2dd51fb wallet desprout 2020-05-30 00:44:20 -04:00
Duke Leto
ab0576a72e desprout 2020-05-29 23:47:28 -04:00
Duke Leto
d265f782e7 desprout 2020-05-29 23:35:11 -04:00
Duke Leto
1010c7e8e4 Throw a logic error instead of asserting when we see weird witness shenanigans 2020-05-29 23:32:41 -04:00
Duke Leto
9c5a4e682e desprout 2020-05-29 23:10:05 -04:00
Duke Leto
095157d2d9 Remove sprout junk 2020-05-11 06:42:01 -04:00
Duke Leto
8a4e72fca2 Remove some sprout code from BuildWitnessCache 2020-05-08 08:57:34 -04:00
Duke Leto
4d56e542a8 Do not look for sprout notes 2020-04-06 23:07:11 -04:00
Duke Leto
e03ef7f108 Avoid notes with height=0 2020-04-06 23:05:20 -04:00
Duke Leto
2e51538df8 Add some debug 2020-03-16 07:58:12 -04:00
Duke Leto
707d50e894 Only malloc_trim on unix+windows 2020-03-15 15:18:00 -04:00
Duke Leto
1beb2b1fa8 Remove more sprouty code 2020-03-10 07:22:23 -04:00
Duke Leto
d8477c4d7b Remove some more sprout code, yay 2020-03-09 21:28:09 -04:00
Duke Leto
e4bfafc76c Better error checking in consolidation for when CommitTransaction() fails 2020-03-09 21:02:52 -04:00
Duke Leto
a2b3316664 Port PR93 from @denioD 2020-03-07 13:55:12 -05:00
DenioD
8556f00d37 resource friendly tx reorder port from 58b05de90d 2020-02-17 21:36:17 +01:00
DenioD
6c48397cf3 Hush witness rework, many thanks to @CryptoForge for this awesome code https://github.com/Cryptoforge-alt/pirate/tree/pirate_witness_rework 2020-02-15 14:14:39 +01:00
Duke Leto
c58fef0d01 Dynamic generation of zaddrs not stored in wallet
These zaddrs can be created via:

    z_getnewaddress donotremember

and return a zaddr like normal usage, but without storing it's extended
spending key in wallet.dat. This will be utilized by Sietch to generate
dynamic zdust for every shielded transaction, preventing attacks related
to having chain-wide fixed pools of zdust.
2020-01-07 09:26:49 -05:00
Duke Leto
1ddae646bf Return global nullifier count for zindex stats 2020-01-02 13:21:50 -05:00
Duke Leto
c0ca9ee8fe Log the sizes of various datastructures about nullifiers when NullifierCount() is called, if -zdebug 2020-01-02 12:46:35 -05:00
Duke Leto
cc3e1c11d7 Use global mempool nullifier count, not local wallet nullifier count 2020-01-02 10:56:14 -05:00
Duke Leto
172ac60765 Initial implementation of shielded pool size. Tweaks to data stored in zindex are needed to get a more correct value 2019-12-28 12:49:01 -05:00
Duke Leto
d4630174cc Delete some sprout junk 2019-12-28 11:51:29 -05:00
Duke Leto
e8509dd525 It is called hush_hardfork_active now 2019-12-13 11:08:10 -05:00
Duke Leto
02c34367bf src/wallet/wallet.cpp upstream changes 2019-12-12 19:19:28 -05:00
Duke Leto
e87d029968 Mostly-working Hush full node sans Verus!!!
Every line of Verus-specific code has been removed from the codebase.
This code compiles on Linux and can do a partial sync. A full sync
and other extensive tests need to be done before it's merged into
the duke branch.

BUGS:

One known bug is that the node starts to CPU mine by default, lol.
2019-11-05 09:42:21 -05:00
Duke Leto
f39cd2a473 Delete Verus junk, which breaks ARMv8/aarch64 builds 2019-11-04 08:17:27 -05:00
Duke Leto
73dcf87f10 Merge upstream FSM into duke 2019-10-09 22:00:02 -04:00
Duke Leto
cae920cf69 More stuff 2019-10-05 13:05:54 -04:00
Jonathan "Duke" Leto
0ebd33efa6 fix compile 2019-10-05 12:06:06 -04:00
Jonathan "Duke" Leto
7920cbc7e7 Merge z_viewtransaction from str4d zcash PR4146 2019-10-05 12:06:06 -04:00
ca333
85aad4be5d fix PING attack [CVE-2019-17048] 2019-10-02 21:53:47 +02:00
blackjok3r
d4aac39f75 fix erase expired tx on wallet load 2019-05-19 00:21:36 +08:00
blackjok3r
02a3f08894 fix staking wallet fix. 2019-05-18 23:38:49 +08:00
Bartlomiej Lisiecki
191fc2e152 Add support for importing and exporting sapling ivk 2019-04-22 17:22:31 -07:00
blackjok3r
237f115594 Clean up some LABS related code, remove un-used/needed stuff.
Adds actual working and feild tested wallet filter. Can set any amount 
of whitelist address's, in conf file or commandline args. 
fix daemon deadlock, when doing z_mergetoaddress and mining at same time 
(needs more testing on staking chains) 
Set z_mergtoaddress to use a 0 expiry height when not doing z-tx's. They 
were failing and peers were getting banned trying to broadcast them.
2019-04-09 18:53:32 +08:00
blackjok3r
e101aa3f9b make -whitelistaddress= activate wallet filter 2019-04-09 06:10:02 +08:00
blackjok3r
6f5e339884 fix 2019-04-09 05:50:06 +08:00
blackjok3r
0d587ccc31 fix 2019-04-09 05:39:34 +08:00
blackjok3r
a30fb4ae36 test 2019-04-09 05:38:10 +08:00
blackjok3r
faea923284 set notary address from -pubkey filter still default to on. 2019-04-09 05:10:52 +08:00
blackjok3r
7e74cb117c fix 2019-04-09 01:39:38 +08:00
blackjok3r
d8edaa38ec make wallet filter work for testnet notary 2019-04-09 01:36:30 +08:00
jl777
8e89c783d4 Casts for windows 2019-03-04 03:22:51 -11:00
Duke Leto
c99801952b Teach RPC interface about dpow-enabled minconfs (#1231)
* Make minconfs dpow-aware in z_listunspent + z_listreceivedbyaddress

* Add dpow-related test files to test suite

* Add dpow simulation to regtest every 7 blocks

* Fix compiler errors

* Fix link error

* Fix stdout spam when running regtests

* Dpowminconfs for listreceivedbyaddress

* dpowconfs tests

* Start adding specific tests for dpowminconfs in listreceivedbyaddress

* Get dpowminconfs tests for listreceivedbyaddress working

* Add dpowminconfs to getreceivedbyaddress + listunspent

* Add test for listtransactions + getreceivedbyaddress support

* Reliably passing dpowminconf tests. We only check for notarized-ness now, not exact confirmation numbers, to avoid race conditions

* Poll for the expected notarization info before running further tests; add support for getbalance

* Migrate tx_height() to a place where asyncrpcoperation_sendmany.cpp can use it

* fix

* Teach GetFilteredNotes about dpowconfs

Many RPCs rely on this internal function, which now correctly uses
dpowconfs to filter by the minconf/maxconf parameters.

* Fix sendmany when using non-default minconf

* inline seems to make things happy

* cleanup

* Add some code to test z_sendmany, which points out https://github.com/jl777/komodo/issues/1247

* try this

* Use already calculated value of dpowconfs instead of calculating it again
2019-03-03 12:27:50 -11:00
blackjok3r
7309367c04 fix & to &&! 2019-02-26 19:55:14 +08:00