Commit Graph

12895 Commits

Author SHA1 Message Date
Alfredo Garcia cbf1a85013 remove z_mergetoaddress from experimental 2019-10-26 12:52:36 -03:00
Larry Ruane 07f2edc91c #4175 z_sendmany coinbase to zaddr with change: report error status 2019-10-24 22:47:31 -06:00
Alfredo Garcia b3594b5273 limit blockchain progress to a max of 1.000000 2019-10-24 15:51:00 -03:00
Homu d54f6c9072 Auto merge of #4157 - rex4539:catalina-fix, r=Eirik0
depends macOS: point --sysroot to SDK

Fixes https://github.com/zcash/zcash/issues/4149
Fixes https://github.com/zcash/zcash/issues/4150
Fixes https://github.com/zcash/zcash/issues/4151
Fixes https://github.com/zcash/zcash/issues/4152
2019-10-24 08:30:11 -07:00
Eirik Ogilvie-Wigley 1ddc9ff231 Show time elapsed when running RPC tests 2019-10-23 15:04:14 -06:00
Taylor Hornby f968506039 Add all-in-one script for starting AFL fuzzing 2019-10-23 11:15:09 -06:00
Homu 6865539f3d Auto merge of #4169 - Eirik0:release-v2.1.0-rc1, r=Eirik0
Release v2.1.0 rc1
2019-10-22 14:47:31 -07:00
Eirik Ogilvie-Wigley fd8004d2bd make-release.py: Updated release notes and changelog for 2.1.0-rc1. 2019-10-22 14:52:02 -06:00
Eirik Ogilvie-Wigley 17a70bcd67 make-release.py: Updated manpages for 2.1.0-rc1. 2019-10-22 14:52:01 -06:00
Eirik Ogilvie-Wigley bdfed7e178 make-release.py: Versioning changes for 2.1.0-rc1. 2019-10-22 14:35:07 -06:00
Alfredo Garcia a913574b0e change some wallet functions from bool to void 2019-10-22 17:23:53 -03:00
Taylor Hornby 8a0fb36b21 Add configure option to replace main with a stub for fuzzing 2019-10-22 13:52:32 -06:00
Taylor Hornby 586f54fc39 Add AFL instrumentation scripts to zcutil.
Co-Authored-By: zebambam <bambam@electriccoin.co>
2019-10-22 13:52:28 -06:00
Homu 63c5cf366e Auto merge of #4166 - Eirik0:4145-fix-macos-compilation, r=Eirik0
Use same type when calling max

Closes #4164
2019-10-22 10:57:26 -07:00
Eirik Ogilvie-Wigley 8307a5db5a Use same type when calling max 2019-10-22 11:29:55 -06:00
Alfredo Garcia 0eec096843 Consensus: Decouple pow.cpp from util.h 2019-10-22 14:16:53 -03:00
Homu fffd5da201 Auto merge of #4145 - Eirik0:limit-mempool, r=Eirik0
DoS protection: Weighted random drop of txs if mempool full
2019-10-21 12:40:50 -07:00
Alfredo Garcia f4106c65a5 remove duplicated prefix in errors and warnings 2019-10-21 13:13:59 -03:00
Eirik Ogilvie-Wigley 40a7156026 Remove dots and underscores from parameter names 2019-10-21 09:20:17 -06:00
Jack Grigg f270979acb
Migrate to librustzcash 0.2.0 API 2019-10-20 19:11:02 +13:00
Jack Grigg be2fdeaaf3
Upgrade librustzcash to 0.2.0
librustzcash now requires a minimum of Rust 1.36.0.

The proc-macro2, quote, syn, and unicode-xid dependencies are pulled in
because we moved to using ff_derive inside pairing to derive the
BLS12-381 fields. We will be going back to explicit implementations with
the jubjub and bls12_381 crates, so these dependencies will disappear
once that is done.

The autocfg crate is pulled in by the upgraded num-integer crate, which
is transitively used by fpe. Rewriting fpe to not use num-bigint would
drop:

- autocfg
- num-bigint
- num-integer
- num-traits

We primarily depend on rand_core in our crates. The rand crate, and its
other dependencies, are pulled in for two reasons:

- The group crate exposes testing helper functions in its public API
  that use distribution sampling APIs in the rand crate.

- zcash_primitives::transaction::Builder uses rand::seq::SliceRandom to
  shuffle the order of Sapling spends and outputs.

Refactoring these in order to drop rand would additionally drop:

- c2-chacha
- rand_chacha
- rand_hc
- rand_xorshift
2019-10-20 19:10:34 +13:00
Eirik Ogilvie-Wigley e744cece52 Fix test cases: default mempool limiters 2019-10-18 13:36:12 -06:00
Eirik Ogilvie-Wigley 898810213c Clarify the difference between cost and evictionWeight 2019-10-17 16:50:44 -06:00
Eirik Ogilvie-Wigley 64fc25ed6e Update parameter names to match ZIP 2019-10-17 16:39:32 -06:00
Eirik Ogilvie-Wigley e7aed48e7a Wording and grammatical fixes 2019-10-17 15:16:51 -06:00
Homu cfc5212dcb Auto merge of #4136 - LarryRuane:empty-roots, r=Eirik0
precompute EmptyMerklePath roots

This is an alternative implementation of #4131.
2019-10-17 13:35:44 -07:00
Eirik Ogilvie-Wigley 78592da52a Add explanatory comments 2019-10-17 14:18:20 -06:00
Eirik Ogilvie-Wigley 2033395e51 minor rpc test clean up 2019-10-17 12:37:05 -06:00
Eirik Ogilvie-Wigley 1edeba61ac Add test 2019-10-17 12:32:33 -06:00
Eirik Ogilvie-Wigley bbb6ce1007 Update release notes 2019-10-17 12:32:27 -06:00
Dimitris Apostolou a80942f558
depends macOS: point --sysroot to SDK 2019-10-16 15:13:57 +03:00
zebambam 7e8b18e480 Added basic fuzzing to the monolith, see ticket #4155 2019-10-15 00:00:21 +00:00
Larry Ruane ffb8e6747b access array element using at() 2019-10-12 19:06:51 -06:00
Larry Ruane a3eb2b8708 update unit tests to compute empty roots 2019-10-12 18:03:36 -06:00
Larry Ruane 7ec8c5d309 precompute empty merkle roots 2019-10-12 18:03:36 -06:00
Eirik Ogilvie-Wigley c4931a9a44 Rename files 2019-10-09 15:22:49 -06:00
Eirik Ogilvie-Wigley b4c4134956 Represent recently evicted list as a deque 2019-10-09 15:12:32 -06:00
Eirik Ogilvie-Wigley ca883c8517 Log rather than return error if a transaction is recently evicted 2019-10-09 14:43:35 -06:00
Eirik Ogilvie-Wigley 9b2a04bd95 Use tx cost rather than evictionWeight when checking mempool capacity 2019-10-09 13:42:46 -06:00
Eirik Ogilvie-Wigley 2d9becbeb8 Rename variables for consistency 2019-10-09 13:36:20 -06:00
Eirik Ogilvie-Wigley 1556ec6722 Fix comments 2019-10-09 13:19:09 -06:00
Eirik Ogilvie-Wigley bf044cc0c3 Represent tx costs as signed integers 2019-10-09 13:14:35 -06:00
Eirik Ogilvie-Wigley b680185f48 mempool_limit rpc test cleanup 2019-10-09 12:50:00 -06:00
Eirik Ogilvie-Wigley 61b7dfb6f0 Move duplicate macro to reusable location 2019-10-09 12:25:56 -06:00
Eirik Ogilvie-Wigley 69a5ffe5d4 Prevent adding duplicate transactions 2019-10-09 12:13:01 -06:00
Eirik Ogilvie-Wigley 2365ba7b97 Put size increment and decrement on their own lines 2019-10-09 12:06:03 -06:00
Eirik Ogilvie-Wigley 30be750644 Fix recently evicted list size 2019-10-09 11:59:14 -06:00
Homu f25d36b9e8 Auto merge of #4129 - str4d:librustzcash-dev-tooling, r=Eirik0
Developer tooling for librustzcash

Closes #4106.
2019-10-08 10:24:35 -07:00
Homu 4eaad3f77b Auto merge of #4154 - zebambam:remove_stale_seeder, r=Eirik0
Removed stale seeder, fixing #4153

Removed old seeder.
2019-10-07 15:06:20 -07:00
Eirik Ogilvie-Wigley a515b0057a No need to activate Overwinter/Sapling in rpc test 2019-10-07 14:43:44 -06:00