Commit Graph
100 Commits
Author SHA1 Message Date
Duke Leto fad66953fb Cleanup 2020-03-06 15:22:50 -05:00
Duke Leto 9c72f4c2f5 Change consolidation fee to be the default instead of zero and require zinput arity to be inside [3,8] 2020-03-06 14:40:24 -05:00
Duke Leto dc7525f12e Untested sapling consolidation plus sietch outputs to reduce metadata leakage 2020-03-04 09:17:05 -05:00
Duke Leto 21ec2e7260 Merge pull request #92 from DenioD/duke
add opretmintxfee from komodo upstream
2020-02-29 04:18:04 -08:00
Duke Leto 9b0d986528 Document default of -consolidation and add comment about number of zouts 2020-02-27 18:20:14 -05:00
Duke Leto cb004f5d57 Remove sprout code from z_exportwallet 2020-02-27 11:11:59 -05:00
Duke Leto a7250280d0 Remove deprecated Sprout benchmarking RPCs 2020-02-27 11:06:58 -05:00
Duke Leto a5515aa336 Fix z_validateaddress docs to remove sprout stuff and use a sapling address in examples 2020-02-26 14:31:35 -05:00
Duke Leto 08583ff269 Merge branch 'dev' into duke 2020-02-26 14:13:54 -05:00
Duke Leto 9e1c741905 Update convert params junk 2020-02-26 14:12:15 -05:00
Duke Leto 2152f4df6d Port getalldata from ZER sans sproutness 2020-02-26 09:51:09 -05:00
Duke Leto b06bd5720a Add z_listreceivedbyaddress from ZER and refactor some stuff 2020-02-26 00:20:02 -05:00
Duke Leto a338a974c7 Add z_listreceivedbyaddress from ZER 2020-02-25 23:49:49 -05:00
Duke Leto 3b4e5d727c Revert "cleanup unnecessary lines"
This reverts commit 49872e5fd7.
2020-02-25 23:49:16 -05:00
Duke Leto 90156a295b Merge pull request #85 from DenioD/duke
port z_listsentbyaddress and add memo field from https://github.com/zerocurrencycoin/Zero/commit/c00e30b210245cc5cc4deada5c6202042a3b9da2
2020-02-25 08:43:00 -08:00
Duke Leto c1fa21cad1 Most Hush blocks have 2 coinbase, one for miner and one for FR; improves #82 2020-02-24 05:42:11 -05:00
Duke Leto 6a296f01d4 Update security-warnings.md 2020-02-18 09:19:56 -05:00
Duke Leto f6a8303b49 Update security-warnings.md 2020-02-18 09:18:37 -05:00
Duke Leto 4a731fed47 Update security-warnings.md 2020-02-18 09:16:44 -05:00
Duke Leto d3226b8a5c Update security-warnings.md 2020-02-18 09:15:42 -05:00
Duke Leto 71087fb24f Merge pull request #83 from DenioD/duke
resource friendly tx reorder ported from https://github.com/CryptoForge/Zero/commit/58b05de90d06817d9bd47fe6b9adeaceccf3c95a
2020-02-18 03:05:49 -08:00
Duke Leto ddbf53524e Merge pull request #80 from DenioD/dev
Hush witness rework, many thanks to @CryptoForge for this awesome cod…
2020-02-15 05:43:11 -08:00
Duke Leto 7948bbf85f Merge pull request #73 from MyHush/desnark
Remove libsnark and various Sprout things
2020-01-25 10:39:15 -08:00
Duke Leto 499720c42b Do not anger the libgmp Elder Gods 2020-01-25 08:28:38 -05:00
Duke Leto 4c0aebd675 Add libgmp back 2020-01-25 08:18:40 -05:00
Duke Leto f3affab178 Revert "We do not use any of these CCs, and we want to remove gmp as dependency, so convert them to use mini-gmp.h for now"
This reverts commit aeb30dd8fa.
2020-01-24 18:33:06 -05:00
Duke Leto 89bbd48eae More libsnark removal changes to various internals 2020-01-24 12:30:58 -05:00
Duke Leto c6de8f850c Revert "Raw transaction updates"
This reverts commit 1f1e2ebf04.
2020-01-24 07:29:49 -05:00
Duke Leto 1f1e2ebf04 Raw transaction updates 2020-01-24 07:20:06 -05:00
Duke Leto aeb30dd8fa We do not use any of these CCs, and we want to remove gmp as dependency, so convert them to use mini-gmp.h for now 2020-01-24 07:09:47 -05:00
Duke Leto 4d965f53eb A bunch more libsnark deletions/updates 2020-01-24 06:32:13 -05:00
Duke Leto 7e078e58c1 Remove more libsnark stuff from the build system 2020-01-24 05:48:43 -05:00
Duke Leto 4a3a7acc90 Remove more libsnark stuff 2020-01-24 05:43:11 -05:00
Duke Leto 447ec28997 Delete a lot of libsnark stuff 2020-01-23 18:45:41 -05:00
Duke Leto aa3775f57a Delete libsnark source code 2020-01-23 14:02:37 -05:00
Duke Leto 4c39efccce Add/update unix manpages 2020-01-18 09:07:22 -05:00
Duke Leto d4ac8162f6 Bump version to 3.3.1 2020-01-18 08:47:57 -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 b175a2df60 Update github issue template 2020-01-02 15:45:20 -05:00
Duke Leto 0b7e87c384 Merge branch 'dev'
Conflicts:
	configure.ac
    src/clientversion.h
2020-01-02 15:25:11 -05:00
Duke Leto 55c8d52de8 Update alert system pubkeys 2020-01-02 14:01:59 -05:00
Duke Leto 8da7b2f9d5 Use global nullifier list in z_listnullifiers 2020-01-02 13:55:22 -05:00
Duke Leto b9f148b3ea Do not write out sprout anchor/nullifier data, since we do not have any 2020-01-02 13:42:18 -05:00
Duke Leto 49f2048a7d Merge pull request #63 from MyHush/zindex_anonset
Zindex anonset
2020-01-02 10:26:59 -08:00
Duke Leto 1ddae646bf Return global nullifier count for zindex stats 2020-01-02 13:21:50 -05:00
Duke Leto 0982e98ee2 Update some copyrights 2020-01-02 13:10:42 -05:00
Duke Leto 5e0f583dd6 Update copyright fixin' script 2020-01-02 13:08:05 -05:00
Duke Leto 15411d5b2e Update copyright year in configure.ac 2020-01-02 13:04:47 -05:00
Duke Leto c0911604cd Update copyright year 2020-01-02 13:03:14 -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 3246b4a907 Correctly sum shielded output count for every xtn, not just the last xtn in the block 2020-01-02 07:44:13 -05:00
Duke Leto 649fa9fa71 Improve zindex to track anonset 2020-01-01 22:45:01 -05:00
Duke Leto 8f72e67ab0 Merge pull request #62 from MyHush/sietch2
Make the order of zaddr recipients we give to z_sendmany internals non-deterministic
2020-01-01 16:16:09 -08: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 597171f2ee Forgotten %s 2019-12-31 10:52:11 -05:00
Duke Leto 92c500be13 Merge pull request #61 from MyHush/sietch
Sietch
2019-12-31 06:07:33 -08:00
Duke Leto 252451e382 Add -zdebug to more stuff 2019-12-31 08:47:35 -05:00
Duke Leto c4320775f7 Start using -zdebug so we don't scare normal users with all this output 2019-12-31 08:19:01 -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 a99b289c2a Add -zdebug 2019-12-30 23:00:06 -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 3e92f28463 Fix compile warning/bug 2019-12-30 12:04:51 -05:00
Duke Leto ace213c54f This actually has pretty decent logging for when nullifiers are added 2019-12-30 07:14:46 -05:00
Duke Leto c7d391176d Log when we add nullifiers 2019-12-29 13:04:34 -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 c9ee4a8d7a Fix bad merge 2019-12-28 17:40:53 -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 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 ae07622c65 Copyright 2019-12-28 09:43:24 -05:00
Duke Leto b2ac9ca6e0 Add zush script 2019-12-27 13:05:18 -05:00
Duke Leto 9ce78421a3 Update timestamp activation of new consensus rules 2019-12-27 09:07:31 -05:00
Duke Leto 35fc6ca6db Change next network upgrade (hard fork) block to 166250 on Jan 29th 2019-12-27 09:03:02 -05:00
Duke Leto 00feb5b573 Update block_time.pl to also print out GMT time 2019-12-27 08:59:04 -05:00
Duke Leto e40a65c2a8 Quiet this stdout spam by default but enable it with -debug 2019-12-26 20:58:26 -05:00
Duke Leto ec3f202942 Merge branch 'duke' into dev
Conflicts:
	src/chainparams.cpp
    src/primitives/block.h
2019-12-26 20:50:50 -05:00
Duke Leto fa0724bfbd Historically the Hush testnets that used to exist, used the TUSH ticker 2019-12-26 20:35:13 -05:00
Duke Leto 4fa69e35e4 Remove duplicate line from a bad merge 2019-12-26 20:30:50 -05:00
Duke Leto 26e604f296 Fix bug where checkpoint data was applied to wrong chains 2019-12-26 20:26:27 -05:00
Duke Leto a37b130798 Revert "Sacrifice to the CPOSNonce gods, will they accept?"
This sacrifice was in vein.

This reverts commit f4c95fea7c.
2019-12-26 20:23:00 -05:00
Duke Leto 5e1e6e5b10 Fix bug where checkpoint data was applied to wrong chains 2019-12-26 16:18:36 -05:00
Duke Leto 17a4dd3007 Try this 2019-12-26 15:30:15 -05:00
Duke Leto f4c95fea7c Sacrifice to the CPOSNonce gods, will they accept? 2019-12-26 14:19:25 -05:00
Duke Leto 46e2c17667 Update KMDversion to 0.5.0 2019-12-25 14:38:28 -05:00
Duke Leto 307cf174d6 Typo 2019-12-25 11:16:00 -05:00
Duke Leto bcc7fd01fd Add script to generate new Hush Smart Chains
For example, this is how to create a new ZUSH Hush Smart Chain, with z-to-z transactions only,
a reward of 5 ZUSH per block, a block time of 55 seconds and a halving period of every 50000 blocks:

$ ./hush-smart-chain -ac_name=ZUSH -ac_private=1 -ac_reward=5 -ac_blocktime=55 -ac_halving=50000 -gen
ASSETCHAINS_SUPPLY 10
perc 0.0000% ac_pub=[000000...] acsize.0
ERA0: end.0 reward.5 halving.50000 decay.0 notarypay.0
extralen.73 before disable bits
MAX_MONEY 6105065246 61.05065246
0000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000050c30000000000000000000000000000400000000000000037000000 extralen.77 crc0.35c92ddd
chainparams_commandline called
>>>>>>>>>> ZUSH: p2p.34998 rpc.37491 magic.d9a3bc82 3651386498 10 coins

In the last line above, you can see the p2p, rpc and magic values associated to the chain.
2019-12-24 15:46:23 -05:00
Duke Leto 75fa411537 Tweak some test suite stuff 2019-12-24 13:43:51 -05:00
Duke Leto 005822fac8 Update travis OSX to include all our binaries 2019-12-24 08:00:15 -05:00
Duke Leto e9340c6a28 Update timestamp index test 2019-12-24 07:58:07 -05:00
Duke Leto 1c5e3e71b8 Clean up 2019-12-24 07:36:15 -05:00
Duke Leto 727a4961d7 Remove example zcash.conf that is no longer needed 2019-12-24 07:36:00 -05:00
Duke Leto 85b3f1ef50 Update common.h 2019-12-24 06:52:39 -05:00