Homu
59de56eeca
Auto merge of #2342 - bitcartel:1081__mempoolpatch, r=str4d
...
Add ability for node to reject tx from mempool by number of tx inputs
Implement short-term solution described in #2343 so that users can respond promptly to critical short-term problems caused by quadratic validation scaling, such as the getblocktemplate latency, block propagation latency, and mempool size inflation issues described in #2333 .
2017-06-21 14:42:13 -07:00
Jack Grigg
4ef014151d
Additional testing of -mempooltxinputlimit
2017-06-20 15:58:46 +12:00
Homu
ef24e8e6be
Auto merge of #2335 - str4d:2333-validation-speed, r=str4d
...
Switch to libsecp256k1-based validation for ECDSA
Cherry-picked from the following upstream PRs:
- bitcoin/bitcoin#6983
- bitcoin/bitcoin#6954
Part of #2333 .
2017-06-17 07:18:25 -07:00
Jack Grigg
b661736b87
Hold an ECCVerifyHandle in zcash-gtest
2017-06-18 02:15:05 +12:00
Jack Grigg
5799c5f8c0
Add test for -mempooltxinputlimit
2017-06-17 14:59:16 +12:00
Jack Grigg
1b786a93c3
Add test for incorrect consensus logic
2017-06-16 13:45:14 +12:00
Sean Bowe
9eb9eebbb8
Check that pairings work properly when the G1 point is at infinity.
2017-05-23 16:31:41 -06:00
Jack Grigg
5b3bc9716e
Implement automatic shutdown of deprecated Zcash versions
...
Closes #2274 .
2017-05-12 14:41:46 +12:00
Daira Hopwood
60b7410cce
Add check for JoinSplit priority as calculated by CCoinsViewCache::GetPriority.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org >
2017-04-13 22:40:37 +01:00
str4d
c83c5932e4
Add unit test for security issue 2017-04-11.a
2017-04-13 17:59:36 +01:00
Jack Grigg
601f00f6fb
Add AtomicTimer tests
2017-03-25 13:06:00 +13:00
Jack Grigg
5c0d105b6b
Update LocalSolPS test
2017-03-25 12:57:22 +13:00
Simon
1003180260
Keep first three original testnet fr addresses so existing coinbase
...
transactions on testnet remain valid during upgrade. New addresses
will be used starting from block 53127.
2017-02-22 11:04:17 -08:00
Simon
4340ec9705
Update founders reward addresses for testnet
2017-02-20 09:23:06 -08:00
Simon
2911b35712
Fix bug where test was generating but not saving keys to wallet on disk.
2017-02-20 09:23:06 -08:00
Jack Grigg
2cc6bab201
Update UniValue includes in Zcash-specific code
2017-02-10 02:19:06 +00:00
Jack Grigg
02972a1bcd
[cleanup] Simplify test code
2017-02-10 00:53:15 +00:00
Jack Grigg
5fb326d41d
Manually iterate over UniValue arrays in tests
2017-02-10 00:53:09 +00:00
Jack Grigg
0d37ae3a59
Migrate Zcash-specific code to UniValue
2017-02-10 00:52:57 +00:00
zkbot
0c78782662
Auto merge of #1965 - str4d:1955-single-address-mining, r=bitcartel
...
Switch miner to P2PKH, add -mineraddress option
Closes #945 and #1955 .
2017-02-09 20:58:00 +00:00
zkbot
80a32b2845
Auto merge of #1863 - str4d:1795-config-flag-disable-miner, r=bitcartel
...
Add compile flag to disable compilation of mining code
Closes #1795
2017-02-09 17:43:43 +00:00
Jack Grigg
8e8b6d701b
Switch miner to P2PKH, add -mineraddress option
...
Closes #945 and #1955 .
2017-02-06 11:54:58 +00:00
Jack Grigg
51fde9ea08
Use a more specific exception class for note decryption failure
...
Closes #1545 .
2017-01-31 23:05:19 +01:00
Jack Grigg
2cc0a252ad
Add compile flag to disable compilation of mining code
2017-01-30 21:14:46 +01:00
zkbot
a6ba873aa8
Auto merge of #1949 - str4d:1810-fix-disablewallet, r=str4d
...
Fix --disablewallet
Closes #1810 .
2017-01-09 17:36:41 +00:00
Sean Bowe
fc538ec2ea
Add test for IncrementalMerkleTree::size().
2016-12-16 13:50:55 -07:00
Jack Grigg
6daab5b4fc
Only run wallet tests when wallet is enabled
2016-12-16 10:52:37 +13:00
zkbot
152c0ebf21
Auto merge of #1938 - ebfull:g2-subgroup-check, r=str4d
...
Additional well-formedness check for G2 elements
libsnark currently checks that G<sub>1</sub> and G<sub>2</sub> elements are well-formed by ensuring that they satisfy their respective curve equations, and although this is enough for G<sub>1</sub> (which is instantiated as an order r curve E/F<sub>p</sub>: y^2 = x^3 + b), G<sub>2</sub> is the order r *subgroup* of the composite order r(2q-r) curve E'/Fp<sup>2</sup>: y^2 = x^3 + b/e constructed via a sextic twisting isomorphism. This means we need to ensure these points are order r as well.
None of the proofs on the Zcash blockchain violate this check, and it may not even be possible for them to violate this check (bilinearity is not preserved). Let's be cautious and do it anyway.
2016-12-13 11:26:23 +00:00
Sean Bowe
c4fce3fc81
Check that E' points are actually in G2 by ensuring they are of order r.
2016-12-12 19:14:42 -07:00
Jack Grigg
6fb8d0c2d6
Skip JoinSplit verification before the last checkpoint
...
Part of #1749
2016-12-09 21:06:45 +13:00
zkbot
a398121503
Auto merge of #1919 - ebfull:abstract-verification, r=str4d
...
Isolate verification to a ProofVerifier context object that allows verification behavior to be tuned by the caller.
This is an alternative foundation for #1892 , i.e., #1892 will have to be changed if this PR is accepted.
I think this is a safer approach because it allows us to isolate verification behavior to a single object. This will come in handy when @arielgabizon finishes the batching code.
2016-12-09 06:22:53 +00:00
Sean Bowe
37cce214a4
ASSERT_TRUE -> ASSERT_FALSE
2016-12-08 23:14:23 -07:00
Sean Bowe
690171e268
Add more tests for ProofVerifier.
2016-12-08 12:47:41 -07:00
Sean Bowe
bc59f53722
Isolate verification to a ProofVerifier context object that allows verification behavior to be tuned by the caller.
2016-12-05 12:40:06 -07:00
Jack Grigg
000499ae64
Add getlocalsolps and getnetworksolps RPC calls, show them in getmininginfo
2016-11-16 22:02:49 +13:00
zkbot
54218ea05c
Auto merge of #1797 - ebfull:improve-joinsplit-diagnostics, r=bitcartel
...
Improve joinsplit diagnostics
I don't advocate merging this for the hotfix release (to fix #1779 ) but this PR can be used to diagnose the real issue and should be merged ASAP afterward.
~I still need to add tests for `last()` and `element()` though.~ Done.
2016-11-16 01:06:37 +00:00
Sean Bowe
3e2e8b5b42
Add test that last and element will throw exception when the tree is blank.
2016-11-15 12:17:19 -07:00
Sean Bowe
d92bea9888
Add tests for witness element and tree last methods. Strengthen testing by inserting a different commitment into the tree at each step.
2016-11-14 10:13:06 -07:00
Simon
38276c6ba2
Add GenIdentity, an identity function for MappedShuffle.
...
We use this function in z_sendmany as part of the fix for #1779 .
2016-11-05 14:17:19 -07:00
Sean Bowe
5f0a73ce11
Improve accuracy of constraint system violation diagnostics.
2016-11-05 11:27:23 -06:00
Sean Bowe
b55744e1ad
Regression test for constraint system violation.
2016-11-05 11:15:16 -06:00
Jack Grigg
d873bd1d58
Revert "Initialise walletdb system in a temp dir for all gtests"
...
This reverts commit 74372eaa4c .
2016-11-03 18:04:28 -05:00
Jack Grigg
74372eaa4c
Initialise walletdb system in a temp dir for all gtests
2016-11-03 15:42:44 -05:00
zkbot
51a5737950
Auto merge of #1754 - str4d:1753-genesis-block-coinbase-height-exception, r=str4d
...
Adjust consensus rule to accept genesis block without height in coinbase
Closes #1753
2016-11-02 18:15:39 +00:00
Jack Grigg
548bbd95f0
Adjust consensus rule to accept genesis block without height in coinbase
...
Closes #1753
2016-11-01 19:58:56 -05:00
Sean Bowe
c4643bd949
Throw more descriptive exceptions when the constraint system is violated.
2016-11-01 14:52:03 -06:00
Daira Hopwood
cb1246194e
Update the error message string for tx version too low. ref #1600
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org >
2016-10-22 13:26:44 +01:00
Jack Grigg
80f4cdcf8f
Reject block versions lower than 4
...
Closes #1556
2016-10-22 00:43:26 -05:00
Jack Grigg
7ac924cdb7
Disallow v0 transactions as a consensus rule
...
Closes #1557
2016-10-22 00:40:50 -05:00
Jack Grigg
3774c944f8
Refactor test code to better test JSDescription::Randomized()
2016-10-18 12:44:56 -05:00