]> Git Repo - VerusCoin.git/log
VerusCoin.git
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 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 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 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 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

8 years agoExtend try catch block around calls to libsnark, per discussion in #1126.
Simon [Fri, 29 Jul 2016 07:02:22 +0000 (00:02 -0700)]
Extend try catch block around calls to libsnark, per discussion in #1126.

8 years agoUpdate comment.
Simon [Fri, 29 Jul 2016 01:44:00 +0000 (18:44 -0700)]
Update comment.

8 years agoFix comment.
Simon [Thu, 28 Jul 2016 23:40:01 +0000 (16:40 -0700)]
Fix comment.

8 years agoAdd more commands to run unit tests under valgrind.
Taylor Hornby [Thu, 28 Jul 2016 20:43:36 +0000 (14:43 -0600)]
Add more commands to run unit tests under valgrind.

8 years agoAuto merge of #1137 - bitcartel:zc.v0.11.2.latest_deprecate_zcraw_api, r=ebfull
zkbot [Thu, 28 Jul 2016 17:25:52 +0000 (17:25 +0000)]
Auto merge of #1137 - bitcartel:zc.v0.11.2.latest_deprecate_zcraw_api, r=ebfull

zcash-cli: Label zcraw... rpc commands as being deprecated

These RPC calls will be removed from 1.0, so let's mark them as deprecated.

8 years agoUpdate deprecation message for zcraw api.
Simon [Thu, 28 Jul 2016 04:40:26 +0000 (21:40 -0700)]
Update deprecation message for zcraw api.

8 years agoMake txid const.
Simon [Wed, 27 Jul 2016 19:14:44 +0000 (12:14 -0700)]
Make txid const.

8 years agoUpdate genesis block hashes and test data.
Simon [Wed, 27 Jul 2016 07:55:48 +0000 (00:55 -0700)]
Update genesis block hashes and test data.

8 years agoFix issue where a coinbase tx should have it's sigscript hashed
Simon [Wed, 27 Jul 2016 07:52:27 +0000 (00:52 -0700)]
Fix issue where a coinbase tx should have it's sigscript hashed
to avoid duplicate txids, as discussed in BIP34 and BIP30.

8 years agoRevert "Set nLockTime in CreateNewBlock() so coinbase txs do not have the same txid."
Simon [Wed, 27 Jul 2016 07:41:26 +0000 (00:41 -0700)]
Revert "Set nLockTime in CreateNewBlock() so coinbase txs do not have the same txid."

This reverts commit 29306269f4c4a09201087025407b7d914912baad.

8 years agoEquihash: Pass each obtained solution to a callback for immediate checking
Jack Grigg [Wed, 27 Jul 2016 07:15:49 +0000 (19:15 +1200)]
Equihash: Pass each obtained solution to a callback for immediate checking

Closes #1143

8 years agoRefactor GetTxid() into UpdateTxid() to match coding style of hash member variable.
Simon [Wed, 27 Jul 2016 00:06:55 +0000 (17:06 -0700)]
Refactor GetTxid() into UpdateTxid() to match coding style of hash member variable.

UpdateTxid() is called alongside UpdateHash() when a CTransaction is
deserialized or constructed.  GetTxid() now returns a const reference.

8 years agoSet nLockTime in CreateNewBlock() so coinbase txs do not have the same txid.
Simon [Tue, 26 Jul 2016 06:23:43 +0000 (23:23 -0700)]
Set nLockTime in CreateNewBlock() so coinbase txs do not have the same txid.
Update test data in miner_tests.

8 years agoReplace calls to GetHash() with GetTxid() for transaction objects.
Simon [Mon, 25 Jul 2016 19:23:37 +0000 (12:23 -0700)]
Replace calls to GetHash() with GetTxid() for transaction objects.

Where the caller intends to receive a transaction id and not a double
SHA256 hash.

8 years agoRename GetHash() method to GetSerializeHash().
Simon [Mon, 25 Jul 2016 18:25:00 +0000 (11:25 -0700)]
Rename GetHash() method to GetSerializeHash().

When pulling from upstream we are now forced to examine GetHash() usage
and replace with GetSerializeHash() if the caller wants a double SHA256
hash, or with GetTxid() if the caller wants a transaction id.

8 years agoUpdated test data for script_tests by uncommenting UPDATE_JSON_TESTS flag.
Simon [Mon, 25 Jul 2016 08:11:47 +0000 (01:11 -0700)]
Updated test data for script_tests by uncommenting UPDATE_JSON_TESTS flag.

8 years agoUpdate block and tx data used in bloom filter tests.
Simon [Sun, 24 Jul 2016 07:56:15 +0000 (00:56 -0700)]
Update block and tx data used in bloom filter tests.

8 years agoUpdate precomputed equihash solutions used in test.
Simon [Sat, 23 Jul 2016 20:28:36 +0000 (13:28 -0700)]
Update precomputed equihash solutions used in test.

8 years agoUpdate genesis blocks.
Simon [Sat, 23 Jul 2016 07:45:38 +0000 (00:45 -0700)]
Update genesis blocks.

8 years agoAdd GetTxid() which returns a non-malleable txid.
Simon [Fri, 22 Jul 2016 21:09:38 +0000 (14:09 -0700)]
Add GetTxid() which returns a non-malleable txid.

8 years agoAuto merge of #1120 - str4d:1055-asynchronous-miner-interrupts, r=str4d
zkbot [Mon, 25 Jul 2016 23:51:23 +0000 (23:51 +0000)]
Auto merge of #1120 - str4d:1055-asynchronous-miner-interrupts, r=str4d

Make Equihash solvers cancellable

The miner only cancels the solver when chainActive.Tip() changes.

Closes #1055

8 years agoInform user that zcraw... rpc calls are being deprecated.
Simon [Sun, 24 Jul 2016 17:05:20 +0000 (10:05 -0700)]
Inform user that zcraw... rpc calls are being deprecated.

8 years agoz7 Release v0.11.2.z7
Sean Bowe [Fri, 22 Jul 2016 21:50:04 +0000 (15:50 -0600)]
z7 Release

8 years agoAuto merge of #1126 - ebfull:more-libsnark-changes, r=ebfull
zkbot [Fri, 22 Jul 2016 20:16:27 +0000 (20:16 +0000)]
Auto merge of #1126 - ebfull:more-libsnark-changes, r=ebfull

Remove more from libsnark, and fix potential remote-DoS.

See https://github.com/zcash/libsnark/pull/1 as well.

[`59adbef`](https://github.com/zcash/libsnark/commit/59adbefcc870c1e807a0378403b6a4022da71d03) removes a remote-DoS that can occur if proofs are not well-formed.

[`e3779f9`](https://github.com/zcash/libsnark/commit/e3779f90490905e88c3a08c7194ee948dd8a0da5) removes more files that we do not need from libsnark.

[`11242d8`](https://github.com/zcash/libsnark/commit/11242d8afe304c8bcc252baec483f04a110d1dd4) replaces assertions that could be triggered by our verifier with exceptions.

Here in Zcash, we catch all exceptions from the verifier and return false.

Closes #459, Closes #69

8 years agoAuto merge of #1127 - ebfull:test-merkle-tree-gadget, r=ebfull
zkbot [Fri, 22 Jul 2016 19:37:13 +0000 (19:37 +0000)]
Auto merge of #1127 - ebfull:test-merkle-tree-gadget, r=ebfull

Add test for non-intuitive merkle tree gadget witnessing behavior.

Closes #920

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