Commit Graph

173 Commits

Author SHA1 Message Date
jl777
b05863f5bd test 2016-10-25 18:39:53 -03:00
jl777
d7d27bb347 test 2016-10-24 15:00:01 -03:00
jl777
1e81ccb718 test 2016-10-24 08:30:17 -03:00
jl777
3505af19f8 test 2016-10-24 06:27:32 -03:00
jl777
7726fe88f4 test 2016-10-23 17:41:08 -03:00
jl777
a6a0d91301 test 2016-10-23 17:38:42 -03:00
jl777
49559c890a test 2016-10-23 17:35:19 -03:00
jl777
536480588e test 2016-10-23 17:18:13 -03:00
jl777
404391b5e9 test 2016-10-23 11:43:44 -03:00
jl777
d81c57cbca test 2016-10-23 09:29:30 -03:00
jl777
00deff02d5 test 2016-10-22 14:19:14 -03:00
jl777
ee9b44ce66 test 2016-10-22 13:48:08 -03:00
jl777
7652ed92bd test 2016-10-22 13:35:17 -03:00
jl777
17878015bb test 2016-10-22 13:23:25 -03:00
jl777
cad0d1ca62 test 2016-10-22 11:32:24 -03:00
jl777
355ca56547 test 2016-10-21 19:09:24 -03:00
jl777
75b751ec17 test 2016-10-21 16:56:27 -03:00
jl777
63a9f52633 test 2016-10-21 16:08:37 -03:00
jl777
8c8552a2ab test 2016-10-21 15:48:46 -03:00
jl777
2737470611 test 2016-10-21 11:51:48 -03:00
jl777
5203fc4b29 test 2016-10-21 11:45:38 -03:00
jl777
695216acfe test 2016-10-21 09:59:25 -03:00
jl777
fdafadd0f1 test 2016-10-21 09:58:30 -03:00
jl777
62b70c88c7 test 2016-10-21 09:57:03 -03:00
jl777
b1b7b2e7d7 test 2016-10-21 09:54:41 -03:00
jl777
34ad681a42 test 2016-10-20 20:20:38 -03:00
jl777
015775bdbb test 2016-10-20 19:13:14 -03:00
jl777
af805d5399 test 2016-10-20 16:51:52 -03:00
jl777
4f5e03dbde test 2016-10-20 16:29:56 -03:00
jl777
b93286c28e test 2016-10-20 16:21:41 -03:00
jl777
3a672e7b11 Merge remote-tracking branch 'zcash/master' into dPoW 2016-10-17 15:28:00 -03:00
zkbot
4cfbe798bf Auto merge of #1429 - str4d:867-update-dependencies, r=str4d
Update all dependencies

Also re-enables disabled compiler warnings.

Closes #867, #944, #1241, #1255, #1348.
2016-10-04 03:48:42 -04:00
jl777
a2a3945ef5 test 2016-10-03 10:22:55 -03:00
jl777
7bfc207ada test 2016-10-03 10:20:27 -03:00
jl777
c939721cee -pubkey fix 2016-10-03 10:11:03 -03:00
jl777
fa9f227180 test 2016-10-03 09:02:29 -03:00
jl777
c95fd5e040 fix args 2016-10-03 08:30:09 -03:00
jl777
998397aa2c fixed pubkey for notary mining 2016-10-03 08:16:53 -03:00
Simon
22dadb35ec Refactor and fix per review 2016-09-30 14:42:47 -07:00
Simon
3b30d8361a Founders reward: changed index computation, added new test and some refactoring. 2016-09-30 14:42:47 -07:00
Simon
db0f931570 Add founders reward to ChainParams.
Fix bug where subsidy slow shift was ignored.
2016-09-30 14:42:47 -07:00
Jack Grigg
4dddc096d4 Replace auto_ptr with unique_ptr 2016-09-29 14:28:38 +13:00
jl777
50027f0631 mindiff exception for notaries 2016-09-23 10:30:15 -03:00
jl777
f03d63720c reduce allowed future timestamp 2hrs -> 10 min 2016-09-14 04:20:11 -03:00
jl777
3a02f67bf3 coin supply, rewards 2016-09-13 15:04:42 -03:00
jl777
684eb8d626 test 2016-09-13 14:36:32 -03:00
jl777
e725f1cbf1 test 2016-09-13 14:28:23 -03:00
Simon
805344dcf4 Refactor: replace calls to GetTxid() with GetHash() 2016-09-07 15:12:09 -07:00
Jack Grigg
5be6abbf84 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).
2016-08-16 16:02:39 +12:00
zkbot
95277e0311 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).
2016-08-05 19:31:52 +00:00