]> Git Repo - VerusCoin.git/log
VerusCoin.git
8 years agoChange some asserts in equihash.cpp to be static.
Daira Hopwood [Wed, 24 Aug 2016 04:39:31 +0000 (05:39 +0100)]
Change some asserts in equihash.cpp to be static.

Signed-off-by: Daira Hopwood <[email protected]>
8 years agoAdd mostly-static checks on consistency of Equihash parameters, MAX_HEADERS_RESULTS...
Daira Hopwood [Wed, 24 Aug 2016 05:13:06 +0000 (06:13 +0100)]
Add mostly-static checks on consistency of Equihash parameters, MAX_HEADERS_RESULTS, and MAX_PROTOCOL_MESSAGE_LENGTH.

Signed-off-by: Daira Hopwood <[email protected]>
8 years agoAuto merge of #1260 - str4d:1175-byte-array-manipulation, r=ebfull
zkbot [Wed, 24 Aug 2016 03:01:13 +0000 (03:01 +0000)]
Auto merge of #1260 - str4d:1175-byte-array-manipulation, r=ebfull

Update Equihash implementation to match the Zcash spec

Closes #1175

8 years agoTest conversion between solution indices and minimal representation
Jack Grigg [Wed, 24 Aug 2016 01:42:52 +0000 (13:42 +1200)]
Test conversion between solution indices and minimal representation

8 years agoAuto merge of #1270 - ThisIsNotOfficialCodeItsJustForks:t1168-fix-optimization-flags...
zkbot [Tue, 23 Aug 2016 03:30:31 +0000 (03:30 +0000)]
Auto merge of #1270 - ThisIsNotOfficialCodeItsJustForks:t1168-fix-optimization-flags, r=daira

Fix inconsistent -O1/-O2, fix libzcash flags, add -fwrapv -fno-strict-aliasing

Closes #1168. In that ticket I decided the optimization flags for dependencies are out of scope, i.e. we go with whatever the upstream package maintainer chose.

8 years agoAuto merge of #1262 - ebfull:compressed-proofs, r=ebfull
zkbot [Tue, 23 Aug 2016 02:11:30 +0000 (02:11 +0000)]
Auto merge of #1262 - ebfull:compressed-proofs, r=ebfull

Implement zkSNARK compression

Implement zkSNARK compression.

The serialization format of zkSNARKs has now been specified in our protocol specification. G1/G2 elements are now compressed into 33 byte and 65 byte formats, repsectively. `MONTGOMERY_OUTPUT` is enabled everywhere to make proving/verifying keys load faster and be consistent with the MPC.

Proofs are now 296 bytes. This PR also updates the proving and verifying keys.

Closes #1103. Closes #471.

See also https://github.com/zcash/libsnark/pull/3 and https://github.com/zcash/libsnark/pull/4

8 years agoAuto merge of #1261 - str4d:892-branch-coverage, r=daira
zkbot [Tue, 23 Aug 2016 00:19:48 +0000 (00:19 +0000)]
Auto merge of #1261 - str4d:892-branch-coverage, r=daira

Coverage report improvements

8 years agoUpdate proving/verifying keys.
Sean Bowe [Thu, 18 Aug 2016 19:17:55 +0000 (13:17 -0600)]
Update proving/verifying keys.

8 years agoEnable MONTGOMERY_OUTPUT everywhere.
Sean Bowe [Thu, 18 Aug 2016 18:21:19 +0000 (12:21 -0600)]
Enable MONTGOMERY_OUTPUT everywhere.

8 years agoUpdate libsnark dependency.
Sean Bowe [Thu, 18 Aug 2016 18:17:27 +0000 (12:17 -0600)]
Update libsnark dependency.

8 years agoPerform curve parameter initialization at start of gtest suite.
Sean Bowe [Thu, 18 Aug 2016 18:15:08 +0000 (12:15 -0600)]
Perform curve parameter initialization at start of gtest suite.

8 years agoMove bigint arithmetic implementations to libsnark.
Daira Hopwood [Mon, 22 Aug 2016 16:18:11 +0000 (17:18 +0100)]
Move bigint arithmetic implementations to libsnark.

8 years agoImplement zkSNARK compression.
Sean Bowe [Tue, 16 Aug 2016 20:08:59 +0000 (14:08 -0600)]
Implement zkSNARK compression.

8 years agoAuto merge of #1268 - ThisIsNotOfficialCodeItsJustForks:t1130-upgrade-libsodium,...
zkbot [Mon, 22 Aug 2016 02:34:30 +0000 (02:34 +0000)]
Auto merge of #1268 - ThisIsNotOfficialCodeItsJustForks:t1130-upgrade-libsodium, r=ebfull

Upgrade libsodium for AVX2-detection bugfix.

Upgrades libsodium to bring in an AVX2-detection bugfix (to help with #1130).

8 years agoAuto merge of #1248 - rcseacord:rcseacord-patch-4, r=ebfull
zkbot [Mon, 22 Aug 2016 00:12:48 +0000 (00:12 +0000)]
Auto merge of #1248 - rcseacord:rcseacord-patch-4, r=ebfull

Update uint256.h

Addresses load of misaligned address for type 'const uint32_t' #1246

8 years agoRemove unnecessary temporary array from Equihash hash generation
Jack Grigg [Sat, 20 Aug 2016 18:05:48 +0000 (06:05 +1200)]
Remove unnecessary temporary array from Equihash hash generation

8 years agoAdd another test case based on example in the spec
Jack Grigg [Sat, 20 Aug 2016 17:57:46 +0000 (05:57 +1200)]
Add another test case based on example in the spec

8 years agoupdate zcash-cli stop message
Gaurav Rana [Sat, 20 Aug 2016 12:27:12 +0000 (12:27 +0000)]
update zcash-cli stop message

changed "Bitcoin server stopping" to "Zcash server stopping"

8 years agoAuto merge of #1236 - tomrittervg:tomrittervg-comments-1, r=ebfull
zkbot [Thu, 18 Aug 2016 23:38:36 +0000 (23:38 +0000)]
Auto merge of #1236 - tomrittervg:tomrittervg-comments-1, r=ebfull

Clarify comment about nonce space for Note Encryption

8 years agoUse libsodium's s < L check, instead checking that libsodium checks that.
Taylor Hornby [Thu, 18 Aug 2016 22:38:20 +0000 (16:38 -0600)]
Use libsodium's s < L check, instead checking that libsodium checks that.

8 years agoUpdate NoteEncryption.hpp
Tom Ritter [Thu, 18 Aug 2016 21:51:15 +0000 (16:51 -0500)]
Update NoteEncryption.hpp

8 years agoAuto merge of #1254 - ebfull:tx-structure-changes, r=bitcartel
zkbot [Thu, 18 Aug 2016 16:49:47 +0000 (16:49 +0000)]
Auto merge of #1254 - ebfull:tx-structure-changes, r=bitcartel

Change memo field size and relocate `ciphertexts` field of JoinSplit description

Closes #1190
Closes #1187

8 years agoAdd parenthesis around macro value definition
ebfull [Thu, 18 Aug 2016 16:43:58 +0000 (10:43 -0600)]
Add parenthesis around macro value definition

8 years agoAuto merge of #1258 - ThisIsNotOfficialCodeItsJustForks:t1251-upstream-anti-dos,...
zkbot [Thu, 18 Aug 2016 16:08:25 +0000 (16:08 +0000)]
Auto merge of #1258 - ThisIsNotOfficialCodeItsJustForks:t1251-upstream-anti-dos, r=daira

Pull in some DoS mitigations from upstream

Closes #1251.

**WARNING: I force pushed**

8 years agoAuto merge of #1205 - str4d:1199-key-management, r=str4d
zkbot [Thu, 18 Aug 2016 00:27:09 +0000 (00:27 +0000)]
Auto merge of #1205 - str4d:1199-key-management, r=str4d

Add support for spending keys to the basic key store

Prerequisite for #1197 and #1199.

8 years agoASSERT -> EXPECT in test to get more info per test run about future regressions
Jack Grigg [Thu, 18 Aug 2016 00:25:01 +0000 (12:25 +1200)]
ASSERT -> EXPECT in test to get more info per test run about future regressions

8 years agoRework test to check for failure to return a spending key
Jack Grigg [Thu, 18 Aug 2016 00:22:30 +0000 (12:22 +1200)]
Rework test to check for failure to return a spending key

8 years agoAdd -fwrapv -fno-strict-aliasing; fix libzcash flags.
Taylor Hornby [Wed, 17 Aug 2016 17:57:51 +0000 (11:57 -0600)]
Add -fwrapv -fno-strict-aliasing; fix libzcash flags.

8 years agoFix inconsistent optimization flags; single source of truth.
Taylor Hornby [Wed, 17 Aug 2016 17:38:28 +0000 (11:38 -0600)]
Fix inconsistent optimization flags; single source of truth.

8 years agoUpgrade libsodium for AVX2-detection bugfix.
Taylor Hornby [Wed, 17 Aug 2016 16:43:06 +0000 (10:43 -0600)]
Upgrade libsodium for AVX2-detection bugfix.

8 years agoAuto merge of #1231 - rcseacord:rcseacord-patch-3, r=str4d
zkbot [Wed, 17 Aug 2016 01:30:26 +0000 (01:30 +0000)]
Auto merge of #1231 - rcseacord:rcseacord-patch-3, r=str4d

Address incorrect use of shared_ptr in test_equihash.cpp

Closes #1228

8 years agoAuto merge of #1230 - rcseacord:rcseacord-patch-1, r=str4d
zkbot [Wed, 17 Aug 2016 00:35:57 +0000 (00:35 +0000)]
Auto merge of #1230 - rcseacord:rcseacord-patch-1, r=str4d

Address incorrect use of shared_ptr in equihash.cpp

Closes #1214

8 years agoAdd separate lock for SpendingKey key store operations
Jack Grigg [Tue, 16 Aug 2016 10:17:33 +0000 (22:17 +1200)]
Add separate lock for SpendingKey key store operations

8 years agoRemove non-libsnark dependencies and test harness code from coverage reports
Jack Grigg [Tue, 16 Aug 2016 10:05:35 +0000 (22:05 +1200)]
Remove non-libsnark dependencies and test harness code from coverage reports

Closes #1203

8 years agoAdd gtest coverage to folders deleted by "make clean"
Jack Grigg [Tue, 16 Aug 2016 08:30:24 +0000 (20:30 +1200)]
Add gtest coverage to folders deleted by "make clean"

8 years agoAdd gtest coverage intermediates to list of files deleted by make
Jack Grigg [Tue, 16 Aug 2016 06:38:42 +0000 (18:38 +1200)]
Add gtest coverage intermediates to list of files deleted by make

8 years agoEnable branch coverage in coverage reports
Jack Grigg [Tue, 16 Aug 2016 06:32:56 +0000 (18:32 +1200)]
Enable branch coverage in coverage reports

Closes #892

8 years agoStore the Equihash solution in minimal representation in the block header
Jack Grigg [Sun, 14 Aug 2016 03:04:13 +0000 (15:04 +1200)]
Store the Equihash solution in minimal representation in the block header

The genesis blocks and miner tests have been regenerated, because changing the
block header serialisation format changes the block hash, and thus validity.

The Equihash solutions have been removed from the bloom test inputs for
simplicity (block validity is not checked there; only a valid serialisation is
necessary).

8 years agonet: correctly initialize nMinPingUsecTime
Wladimir J. van der Laan [Fri, 4 Sep 2015 13:43:21 +0000 (15:43 +0200)]
net: correctly initialize nMinPingUsecTime

`nMinPingUsecTime` was left uninitialized in CNode.
The correct initialization for a minimum-until-now is int64_t's max value, so initialize it to that.
Thanks @MarcoFalke for noticing.

8 years agoUse network group instead of CNetAddr in final pass to select node to disconnect
Patrick Strateman [Wed, 26 Aug 2015 00:06:15 +0000 (17:06 -0700)]
Use network group instead of CNetAddr in final pass to select node to disconnect

8 years agoFix comment
Patrick Strateman [Tue, 25 Aug 2015 23:31:13 +0000 (16:31 -0700)]
Fix comment

8 years agoAcquire cs_vNodes before changing refrence counts
Patrick Strateman [Tue, 25 Aug 2015 23:30:02 +0000 (16:30 -0700)]
Acquire cs_vNodes before changing refrence counts

8 years agoCNodeRef copy constructor and assignment operator
Patrick Strateman [Tue, 25 Aug 2015 22:33:29 +0000 (15:33 -0700)]
CNodeRef copy constructor and assignment operator

8 years agoReturn false early if vEvictionCandidates is empty
Patrick Strateman [Sat, 22 Aug 2015 22:15:39 +0000 (15:15 -0700)]
Return false early if vEvictionCandidates is empty

8 years agoBetter support for nodes with non-standard nMaxConnections
Patrick Strateman [Sat, 22 Aug 2015 01:42:05 +0000 (18:42 -0700)]
Better support for nodes with non-standard nMaxConnections

8 years agoRAII wrapper for CNode*
Patrick Strateman [Fri, 21 Aug 2015 00:29:04 +0000 (17:29 -0700)]
RAII wrapper for CNode*

8 years agoAdd comments to AttemptToEvictConnection
Patrick Strateman [Thu, 20 Aug 2015 23:47:49 +0000 (16:47 -0700)]
Add comments to AttemptToEvictConnection

8 years agoRemove redundant whiteconnections option
Patrick Strateman [Fri, 14 Aug 2015 00:32:57 +0000 (17:32 -0700)]
Remove redundant whiteconnections option

8 years agoPrefer to disconnect peers in favor of whitelisted peers
Patrick Strateman [Fri, 14 Aug 2015 00:22:35 +0000 (17:22 -0700)]
Prefer to disconnect peers in favor of whitelisted peers

8 years agoAttemptToEvictConnection
Patrick Strateman [Thu, 13 Aug 2015 09:58:58 +0000 (02:58 -0700)]
AttemptToEvictConnection

8 years agoRecord nMinPingUsecTime
Patrick Strateman [Thu, 13 Aug 2015 09:31:46 +0000 (02:31 -0700)]
Record nMinPingUsecTime

8 years agoRefactor: Move failure conditions to the top of AcceptConnection
Patrick Strateman [Thu, 13 Aug 2015 09:19:17 +0000 (02:19 -0700)]
Refactor: Move failure conditions to the top of AcceptConnection

8 years agoRefactor: Bail early in AcceptConnection
Patrick Strateman [Thu, 13 Aug 2015 09:16:46 +0000 (02:16 -0700)]
Refactor: Bail early in AcceptConnection

8 years agoRefactor: AcceptConnection (modified to include 95a50390)
Patrick Strateman [Thu, 13 Aug 2015 09:00:10 +0000 (02:00 -0700)]
Refactor: AcceptConnection (modified to include 95a50390)

8 years agoExtend byte array expansion and compression methods with optional padding
Jack Grigg [Sat, 13 Aug 2016 13:58:08 +0000 (01:58 +1200)]
Extend byte array expansion and compression methods with optional padding

8 years agoUpdate Equihash hash generation to match the Zcash spec
Jack Grigg [Sat, 13 Aug 2016 13:14:09 +0000 (01:14 +1200)]
Update Equihash hash generation to match the Zcash spec

Changes:

- floor(512/n)*n/8 bytes of BLAKE2b output is split between floor(512/n)
  adjacent indices, instead of using one hash call per index.

- Parameters with n/(k+1) mod 8 != 0 will expand the BLAKE2b output to byte
  boundaries for colliding, instead of using a longer output and clearing bits.

- The genesis blocks have been regenerated.

- The test vectors have been regenerated.

- The Equihash inputs for the cancellation tests were modified to ensure that
  valid solutions were available to exercise the full solver.

8 years agoAdd methods for byte array expansion and compression
Jack Grigg [Sat, 13 Aug 2016 04:45:53 +0000 (16:45 +1200)]
Add methods for byte array expansion and compression

These methods convert between:

- A byte array of length NL/8, and
- An array of N blocks of ceil(L/8) bytes.

8 years agoChange memo field size and relocate `ciphertexts` field of JoinSplit description.
Sean Bowe [Mon, 15 Aug 2016 14:54:42 +0000 (08:54 -0600)]
Change memo field size and relocate `ciphertexts` field of JoinSplit description.

8 years agoAuto merge of #1194 - bitcartel:zc.v0.11.2.z8_issue_1193_fixtest, r=ebfull
zkbot [Sun, 14 Aug 2016 21:21:58 +0000 (21:21 +0000)]
Auto merge of #1194 - bitcartel:zc.v0.11.2.z8_issue_1193_fixtest, r=ebfull

Improve speed and accuracy of zcbenchmark validatelargetx

The verification test, in a loop, passes `spending_tx` (a `CMutableTransaction`) to the constructor of `MutableTransactionSignatureChecker`, which immediately uses it to create a non-mutable `CTransaction` object, which is used for the actual verification process.

Since `spending_tx` is not mutated during the verification loop & process, we can instead convert it to a `CTransaction` just once, and use it with `TransactionSignatureChecker`.

This removes the time to create `CTransaction` objects from the benchmark itself.

Results show an improvement in running time to complete the verification phase of the test and consistent times across z7 and z8 releases.

```
Benchmarks on i3 processor:
z7 old 228.67205900 --> z7 new 49.27225200
z7 old 229.90048900 --> z7 new 48.38650700
z8 old 295.77963800 --> z8 new 48.37695100
z8 old 294.32640100 --> z8 new 49.93216100
```

8 years agoUpdate uint256.h
Robert C. Seacord [Sat, 13 Aug 2016 15:12:18 +0000 (11:12 -0400)]
Update uint256.h

Addresses load of misaligned address for type 'const uint32_t' #1246

8 years agoConsistent parameter naming
Jack Grigg [Fri, 12 Aug 2016 02:37:17 +0000 (14:37 +1200)]
Consistent parameter naming

8 years agoMerge AddSpendingKeyPaymentAddress into AddSpendingKey to simplify API
Jack Grigg [Fri, 12 Aug 2016 02:24:29 +0000 (14:24 +1200)]
Merge AddSpendingKeyPaymentAddress into AddSpendingKey to simplify API

8 years agoDisable hardening when building for coverage reports.
Taylor Hornby [Thu, 11 Aug 2016 21:15:50 +0000 (15:15 -0600)]
Disable hardening when building for coverage reports.

8 years agoClarify comment about nonce space for Note Encryption
Tom Ritter [Thu, 11 Aug 2016 18:48:47 +0000 (13:48 -0500)]
Clarify comment about nonce space for Note Encryption

8 years agoUpdate test_equihash.cpp
Robert C. Seacord [Thu, 11 Aug 2016 02:02:00 +0000 (22:02 -0400)]
Update test_equihash.cpp

8 years agoUpdate equihash.cpp
Robert C. Seacord [Wed, 10 Aug 2016 19:40:32 +0000 (15:40 -0400)]
Update equihash.cpp

fix https://github.com/zcash/zcash/issues/1214

8 years agoAdd support for spending keys to the basic key store
Jack Grigg [Tue, 9 Aug 2016 01:34:58 +0000 (13:34 +1200)]
Add support for spending keys to the basic key store

8 years agoUpdate variable.
Simon [Mon, 8 Aug 2016 07:51:27 +0000 (00:51 -0700)]
Update variable.

8 years agoFixes #1193 so that during verification benchmarking it does not
Simon [Mon, 8 Aug 2016 06:54:50 +0000 (23:54 -0700)]
Fixes #1193 so that during verification benchmarking it does not
unncessarily create thousands of CTransaction objects.

8 years agoRelease process for z8. Issue #1140. v0.11.2.z8
Simon [Sat, 6 Aug 2016 22:37:24 +0000 (15:37 -0700)]
Release process for z8.  Issue #1140.

8 years agoAuto merge of #1183 - bitcartel:zc.v0.11.2.latest_txid_tests, r=bitcartel
zkbot [Sat, 6 Aug 2016 21:47:23 +0000 (21:47 +0000)]
Auto merge of #1183 - bitcartel:zc.v0.11.2.latest_txid_tests, r=bitcartel

Add gtest for non-malleable txids.

1. Test txid of normal transaction is double sha256 with sigscript input data removed
2. Test txid of coinbase transaction is double sha256 over whole tx

You can run a single test with:
./zcash-gtest --gtest_filter="txid_tests*"

8 years agoAdd test for non-malleable txids. To run just this test:
Simon [Sat, 6 Aug 2016 05:54:21 +0000 (22:54 -0700)]
Add test for non-malleable txids.  To run just this test:
./zcash-gtest --gtest_filter="txid_tests*"

8 years agoIgnore duplicate entries after partial recreation
Jack Grigg [Sat, 6 Aug 2016 04:39:14 +0000 (16:39 +1200)]
Ignore duplicate entries after partial recreation

8 years agoUpdate tests to account for new Equihash parameters
Jack Grigg [Sat, 6 Aug 2016 03:26:59 +0000 (15:26 +1200)]
Update tests to account for new Equihash parameters

8 years agoChange Equihash parameters to n = 200, k = 9 (about 563-700 MiB)
Jack Grigg [Sat, 6 Aug 2016 03:26:45 +0000 (15:26 +1200)]
Change Equihash parameters to n = 200, k = 9 (about 563-700 MiB)

8 years agoFix bug in IsProbablyDuplicate()
Jack Grigg [Sat, 6 Aug 2016 03:26:22 +0000 (15:26 +1200)]
Fix bug in IsProbablyDuplicate()

Closes #1179

8 years agoAdd test showing bug in IsProbablyDuplicate()
Jack Grigg [Sat, 6 Aug 2016 03:23:47 +0000 (15:23 +1200)]
Add test showing bug in IsProbablyDuplicate()

8 years agoAdd Equihash support for n = 200, k = 9
Jack Grigg [Fri, 5 Aug 2016 22:29:09 +0000 (10:29 +1200)]
Add Equihash support for n = 200, k = 9

Closes #1177

8 years agoAuto merge of #1144 - bitcartel:zc.v0.11.2.z7_tx_malleability_gettxid, r=bitcartel
zkbot [Fri, 5 Aug 2016 19:31:52 +0000 (19:31 +0000)]
Auto merge of #1144 - bitcartel:zc.v0.11.2.z7_tx_malleability_gettxid, r=bitcartel

A fix for transaction malleability

This PR fixes transaction malleability by not including the sigscript of transaction inputs and joinsplit sigs when hashing the txid.

This PR supercedes PR #1101 which was a minimal solution based on a new serialization flag.

This PR introduces GetTxid() to distinguish between getting a transaction id and the double sha256 hash.

The key changes are:
- Adding GetTxid() method to CTransaction which makes a copy of the transaction, clearing out the sigscript and joinsplitsig fields, before hashing.
- Verifying that every call to GetHash() actually wants a txid, and replacing with GetTxid().
- Renaming GetHash() to GetSerializeHash()
  - Rationale: In future, upstream code we want to merge will use GetHash() but we don't know the intent.  We should check to see if the intent is to receive a txid (most likely) in which case we replace with GetTxid(), or if upstream actually wants a double hash of the transaction we can use GetSerializeHash().
- Updated genesis data in chainparams.cpp

Note that coinbase transactions are excluded as they need the sigscript hashed to help avoid duplicate txids per BIP34:
  - This modification is related to a question from @ebfull on PR #1101 - "Can we think of a way this change allows us to construct two transactions with the same txid which can simultaneously appear in the blockchain? My guess is it would be possible to construct a coinbase transaction of such a form... this surely breaks invariants."

This PR Passes all tests in test_bitcoin (test data was updated in bloom_tests, miner_tests and script_tests).

8 years agoAuto merge of #1173 - str4d:1165-equihash-fix-large-k-ballooning, r=bitcartel
zkbot [Fri, 5 Aug 2016 17:35:35 +0000 (17:35 +0000)]
Auto merge of #1173 - str4d:1165-equihash-fix-large-k-ballooning, r=bitcartel

Eliminate some of the duplicates caused by truncating indices

Closes #1165

8 years agoAuto merge of #1172 - str4d:1148-remove-equihash-collision-length-assumption, r=bitcartel
zkbot [Fri, 5 Aug 2016 16:53:28 +0000 (16:53 +0000)]
Auto merge of #1172 - str4d:1148-remove-equihash-collision-length-assumption, r=bitcartel

Remove the assumption that n/(k+1) is a multiple of 8

This version works, but generates the initial rows in a way that is probably
not what we want to specify.

Closes #1148

8 years agoRemove the assumption that n/(k+1) is a multiple of 8.
Jack Grigg [Fri, 5 Aug 2016 14:34:07 +0000 (02:34 +1200)]
Remove the assumption that n/(k+1) is a multiple of 8.

This version works, but generates the initial rows in a way that is not what we
want to specify. See #1175 for resolving this.

Co-author: Daira Hopwood <[email protected]>

8 years agoFix previous commit
Jack Grigg [Fri, 5 Aug 2016 14:03:08 +0000 (02:03 +1200)]
Fix previous commit

8 years agoSimplify optional parameters
Jack Grigg [Fri, 5 Aug 2016 12:36:33 +0000 (00:36 +1200)]
Simplify optional parameters

8 years agoAdd missing assert
Jack Grigg [Fri, 5 Aug 2016 10:24:04 +0000 (22:24 +1200)]
Add missing assert

8 years agoSimplify IsProbablyDuplicate()
Jack Grigg [Fri, 5 Aug 2016 10:12:50 +0000 (22:12 +1200)]
Simplify IsProbablyDuplicate()

8 years agoEliminate probably duplicates in final round
Jack Grigg [Fri, 5 Aug 2016 06:15:34 +0000 (18:15 +1200)]
Eliminate probably duplicates in final round

This is more likely to eliminate valid solutions than doing so in intermediate
rounds, but the probability is still very low.

8 years agoUse fixed-size array in IsProbablyDuplicate to avoid stack protector warning
Jack Grigg [Fri, 5 Aug 2016 05:18:47 +0000 (17:18 +1200)]
Use fixed-size array in IsProbablyDuplicate to avoid stack protector warning

8 years agoEliminate some of the duplicates caused by truncating indices
Jack Grigg [Thu, 4 Aug 2016 01:07:24 +0000 (13:07 +1200)]
Eliminate some of the duplicates caused by truncating indices

8 years agoAdd thread parameter to solveequihash benchmark
Jack Grigg [Fri, 5 Aug 2016 03:05:38 +0000 (15:05 +1200)]
Add thread parameter to solveequihash benchmark

Closes #1147

8 years agoUse -O1 opimitization flag when building libzcash.
Simon [Thu, 4 Aug 2016 05:41:28 +0000 (22:41 -0700)]
Use -O1 opimitization flag when building libzcash.
Continuation of #1064 and related to #1168.

8 years agoAuto merge of #1086 - zcash:daira-simplify-readme-title, r=bitcartel
zkbot [Thu, 4 Aug 2016 01:33:43 +0000 (01:33 +0000)]
Auto merge of #1086 - zcash:daira-simplify-readme-title, r=bitcartel

README.md: simplify the title, drop "Core"

We only have one public tree.

8 years agoAuto merge of #1064 - ThisIsNotOfficialCodeItsJustForks:t915-enable-security-hardenin...
zkbot [Wed, 3 Aug 2016 23:57:05 +0000 (23:57 +0000)]
Auto merge of #1064 - ThisIsNotOfficialCodeItsJustForks:t915-enable-security-hardening, r=bitcartel

Verify security hardening features are turned on

8 years agoAuto merge of #1157 - ThisIsNotOfficialCodeItsJustForks:t761-run-tests-under-valgrind...
zkbot [Wed, 3 Aug 2016 23:11:44 +0000 (23:11 +0000)]
Auto merge of #1157 - ThisIsNotOfficialCodeItsJustForks:t761-run-tests-under-valgrind, r=nathan-at-least

[WIP] Add more commands to run unit tests under valgrind.

This runs both zcash-gtest and test_bitcoin under valgrind. There's a corresponding PR to the buildbot config https://github.com/Electric-Coin-Company/bbotzc/pull/23. Closes #761.

8 years agoAuto merge of #1160 - str4d:1131-remove-hardfork, r=bitcartel
zkbot [Wed, 3 Aug 2016 17:56:32 +0000 (17:56 +0000)]
Auto merge of #1160 - str4d:1131-remove-hardfork, r=bitcartel

Remove hardfork from special testnet difficulty rules

Closes #1131

8 years agoAuto merge of #1158 - bitcartel:zc.v0.11.2.latest_1126_trycatch, r=ebfull
zkbot [Mon, 1 Aug 2016 21:16:53 +0000 (21:16 +0000)]
Auto merge of #1158 - bitcartel:zc.v0.11.2.latest_1126_trycatch, r=ebfull

Extend try catch block around call to libsnark verifier

As discussed in #1126.

@daira Per your [comment](https://github.com/zcash/zcash/pull/1126#issuecomment-234714939):

> I would like assertion errors during tests to cause a test failure (unless the test explicitly expects them). Can we split this into verify and verify_internal, where the former does the try/catch around a call to verify_internal, and the latter is called by verification unit tests?

Did you mean move everything inside the extended try/catch to verify_internal, or just the call to r1cs_ppzksnark_verifier_strong_IC?

8 years agoRemove GetSerializeHash() method.
Simon [Sat, 30 Jul 2016 06:28:34 +0000 (23:28 -0700)]
Remove GetSerializeHash() method.

8 years agoAuto merge of #1146 - str4d:1143-equihash-solution-callback, r=ebfull
zkbot [Sat, 30 Jul 2016 02:59:12 +0000 (02:59 +0000)]
Auto merge of #1146 - str4d:1143-equihash-solution-callback, r=ebfull

Equihash: Pass each obtained solution to a callback for immediate checking

Closes #1143

8 years agoFix bug in 'generate' RPC method that caused it to fail with high probability
Jack Grigg [Fri, 29 Jul 2016 13:28:17 +0000 (01:28 +1200)]
Fix bug in 'generate' RPC method that caused it to fail with high probability

8 years agoRemove hardfork from special testnet difficulty rules
Jack Grigg [Fri, 29 Jul 2016 09:46:27 +0000 (21:46 +1200)]
Remove hardfork from special testnet difficulty rules

Closes #1131

This page took 0.063757 seconds and 4 git commands to generate.