Commit Graph

1296 Commits

Author SHA1 Message Date
Duke Leto
89bbd48eae More libsnark removal changes to various internals 2020-01-24 12:30:58 -05:00
Duke Leto
8eef38f94c Fix broken sendmany RPC
The sendmany RPC was broken in the 3.3.0 release due to a bad merge of upstream KMD code,
resulting in this kind of error:

./src/hush-cli sendmany "" "{\"$TADDR1\": 0.0001, \"$TADDR2\": 0.0002, \"$TADDR3\": 0.0004}"
error code: -3
error message:
Amount is not a number or string

No matter how many recipients you give, it will always "fall off the end" of the array, because it increments i twice per loop.
That means AmountFromValue(sendTo[i]) is given an invalid amount and the RPC errors out, with no loss of funds.

This is not a consensus bug and only nodes who want to use the sendmany RPC need to upgrade.
Since GUI wallets do not use this RPC, it's most likely pools and exchanges that would want this.
2020-01-18 08:42:12 -05:00
Duke Leto
8da7b2f9d5 Use global nullifier list in z_listnullifiers 2020-01-02 13:55:22 -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
33e3566cb4 Merge branch 'z_listnullifiers' into zindex_anonset 2020-01-02 08:39:56 -05:00
Duke Leto
5ccfc33931 Remove sprout junk from z_listaddresses 2020-01-02 08:06:31 -05:00
Duke Leto
2d1b8eff67 wip rpc for nullifiers 2020-01-02 08:05:24 -05:00
Duke Leto
0c70df2854 Make the order of zaddr recipients we give to z_sendmany internals non-deterministic 2019-12-31 18:54:25 -05:00
Duke Leto
252451e382 Add -zdebug to more stuff 2019-12-31 08:47:35 -05:00
Duke Leto
bec886ec43 Convert sietch to use 2 fixed zpools of 100 zaddrs 2019-12-30 23:22:56 -05:00
Duke Leto
cb5fbb6139 Define a sietch header file and add --sietch-min-zouts CLI option 2019-12-30 18:22:06 -05:00
Duke Leto
d8ce153b7f Debug 2019-12-30 12:15:28 -05:00
Duke Leto
7609fe8bbb Logging and copyrights 2019-12-29 12:16:44 -05:00
Duke Leto
bd2760421d z_sendmany logging 2019-12-28 21:00:28 -05:00
Duke Leto
bbe6fc8b68 Remove sprout junk 2019-12-28 20:58:28 -05:00
Duke Leto
83c7586e40 Merge branch 'dev' into sietch
Conflicts:
	src/coins.cpp
2019-12-28 17:39:47 -05:00
Duke Leto
773719b66c Sietch v0 prototype 2019-12-28 17:37:39 -05:00
Duke Leto
148e86a33b Remove unneeded RPCs 2019-12-22 05:03:11 -05:00
Duke Leto
ccbe3478e5 Delete some sprout code 2019-12-15 06:26:00 -05:00
Duke Leto
8ebeafce77 Delete some sprout code that causes problems and remove some dead code 2019-12-14 22:15:28 -05:00
Duke Leto
b6e93662c7 Fix channelsaddress 2019-12-13 09:47:49 -05:00
Duke Leto
82a21aacc0 ExtractVoutDestination is only needed for timelocked utxos 2019-12-12 23:30:27 -05:00
Duke Leto
73997b39fc Fixups 2019-12-12 19:06:46 -05:00
Duke Leto
869409b710 src/wallet/rcpwallet.cpp upstream changes 2019-12-12 18:56:36 -05:00
Duke Leto
ff803add6e Compile fixes 2019-12-12 06:42:33 -05:00
Duke Leto
ed52da4a8d No staking code, thank you very much 2019-12-11 16:35:47 -05:00
Duke Leto
011ef18636 Merge branch 'duke' into danger 2019-12-08 20:39:50 -05:00
Duke Leto
0308fac481 Update heir cc from upstream 2019-12-08 17:46:04 -05:00
Duke Leto
f130321b0a recovered => outgoing in z_viewtransaction 2019-11-27 23:39:03 -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
5b29c7cd71 wip 2019-11-05 06:54:42 -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
5dc358dfa4 more stuff 2019-10-06 06:10:43 -04:00
Duke Leto
a8cfe6ae4a Add nullifier, anchor, commitment and rk 2019-10-05 15:44:07 -04:00
Duke Leto
cae920cf69 More stuff 2019-10-05 13:05:54 -04:00
Duke Leto
812078e212 We don't want no sprout around here 2019-10-05 12:36:27 -04:00
Jonathan "Duke" Leto
04c4435497 safe mode is ok 2019-10-05 12:06:06 -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
Mihailo Milenkovic
93427a86f4 Fix [cc]address RPCs 2019-09-26 11:33:17 +02:00
Mihailo Milenkovic
a7204d9f85 CC fixes for nSPV and others (#30)
- Remove adding txfee inputs for gateways claim
- FULLNODE and SUPERLITE macros
- Filter SetCCtxids with txid from oprert
- Fix for nServices of fullnode
- Use SetCCtxids_nSPV for some more CCs
- Fix addnormalinputs and add checking if utxo spent in mempool
2019-08-12 14:16:46 +03:00
jl777
2974f1e80f Merge pull request #1675 from Alrighttt/jl777
proper opreturn burn rpc command
2019-08-07 02:39:08 -11:00
Alrighttt
ae465a1d04 fix opreturn_burn help info 2019-08-06 08:08:32 +00:00
Alrighttt
db5f9c4432 remove CCFinalize change, return unsigned hex instead 2019-08-06 07:46:27 +00:00
jl777
0454333ff8 Tristate KOMODO_NSPV 2019-07-30 05:11:57 -11:00
Alrighttt
cc96d56c49 fix opreturn_burn merge conflict 2019-07-18 16:33:17 +02:00
jl777
ab4619c98b Scrub privkeys from memory after done 2019-07-15 04:06:20 -11:00
jl777
93fb6f5f51 -print 2019-07-11 21:47:48 -11:00