Commit Graph

16599 Commits

Author SHA1 Message Date
jl777
8ec7e32a01 Merge pull request #516 from jl777/beta
Dukeleto's zcash#2931
2018-02-18 12:46:49 +02:00
jl777
81c5ec4f3c Dukeleto's https://github.com/zcash/zcash/pull/2931 2018-02-18 12:45:22 +02:00
jl777
8f011ce033 Merge pull request #515 from letolabs/hashreserved
Read hashReserved block header data from disk
2018-02-18 12:10:19 +02:00
Jonathan "Duke" Leto
c989bc86e3 Read hashReserved from disk instead of assuming 0
Related to https://github.com/zcash/zcash/pull/2931
2018-02-17 20:45:00 -08:00
Homu
8da60b127e Auto merge of #2958 - bitcartel:2906_extra_test, r=str4d
Add test to check malformed v1 transaction against Overwinter tx parser
2018-02-17 10:14:31 -08:00
Scott Sadler
a99ca25a5a cryptocondition transaction is standard too 2018-02-17 02:03:34 -03:00
Simon
fa78211ed7 Add test to check malformed v1 transaction against Overwinter tx parser 2018-02-16 15:42:04 -08:00
Homu
c6ffabb47f Auto merge of #2925 - bitcartel:2906_overwinter_tx_format, r=str4d
Overwinter transaction format

Implements ZIP 202.

Closes #2906.
2018-02-16 11:38:58 -08:00
Jack Grigg
46d3762a90 Update SignatureHash tests for transaction format changes
The test uses randomly-generated transactions, some of which fell outside the
actual consensus rules.
2018-02-16 10:10:35 -08:00
Simon
072099d788 Implementation of Overwinter transaction format ZIP 202. 2018-02-16 10:10:15 -08:00
Scott Sadler
a01d0f5672 remove rpc crypto conditions 2018-02-16 14:24:38 -03:00
Homu
d527116d46 Auto merge of #2923 - str4d:sighash-tests-env-bug, r=str4d
Use JoinSplitTestingSetup for Boost sighash tests

Symptom: When running all tests, the test suite passed. But when running the
sighash tests on their own, the test suite segfaulted.

Cause: The sighash tests depend on the proving parameters being accessible, but
BasicTestingSetup doesn't load them.
2018-02-15 05:41:18 -08:00
jl777
fc5bee9e14 -print 2018-02-14 00:57:33 +02:00
jl777
036a250c6e Test 2018-02-13 23:04:01 +02:00
jl777
e8a05f61f0 Test 2018-02-13 23:00:15 +02:00
jl777
8eaa7b03cc Test 2018-02-13 22:57:25 +02:00
jl777
148e99adac Test 2018-02-13 22:55:14 +02:00
jl777
9c7d2832f1 Test 2018-02-13 22:54:45 +02:00
jl777
85ef725a7d Test 2018-02-13 22:52:45 +02:00
jl777
e34a9d43fe Fix 2018-02-13 22:42:34 +02:00
jl777
e169b65ff0 New features in testing
New komodod -ac parameters for assetchains. If -ac_reward=<satoshis> is
non-zero, the chain will mine normally and start with -ac_reward for
the block reward.

if -ac_end=<endheight> is set, then -ac_reward will be 0 after
endheight is reached

if -ac_halving=<halvingperiod> is set, then every <halvingperiod>
blocks the block reward is reduced according to one of three methods.
1440 (approx a day) is the most frequent halving period

if -ac_decay is not set, then the normal bitcoin halving is done.

if -ac_decay=<numerator> is set to be exactly 100000000, then the
-ac_reward is scaled linearly toward 0, with 0 at endheight.

for all other values of numerator (less than 100000000) the reward is
iteratively reduced by the number of "halving" periods, ie.
	numhalvings = (height / -ac_halving);
	for (i=0; i<numhalvings; i++)
		reward = (reward * -ac_decay) / 100000000;

if -ac_perc=<satoshis> is nonzero and less than equal 100000000 and
-ac_pubkey=<secp_pubkey33> is set to a 33byte hexstr (len 66 starting
with 02 or 03) then there will be a second vout in the coinbase
transaction that is exactly the commission rate indicated by -ac_perc,
with 100000000 being the max of 100%. wallets will need to be
customized to make sure to pay the -ac_perc of transaction size as
txfee. chains with a percentage override can only be mined by the
-ac_pubkey address

bitcoin behavior would be -ac_reward=5000000000 -ac_halving=210000

KMD behavior would be -ac_reward = 300000000 -ac_end=7777777

a more smoothly reducing reward that halves every 210000 blocks would
be:

 -ac_reward=5000000000 -ac_halving=10000 -ac_decay=96777000

This release also supports a second slate of hardcoded notaries
2018-02-13 22:37:47 +02:00
jl777
ae0bb3d3c3 Test 2018-02-13 22:36:44 +02:00
jl777
698c5e7e94 Test 2018-02-13 22:34:29 +02:00
jl777
ac756fd8bb Test 2018-02-13 22:32:14 +02:00
jl777
da7b748e6b Test 2018-02-13 22:30:59 +02:00
jl777
6b1d77f585 Test 2018-02-13 22:27:18 +02:00
jl777
d209491abf Test 2018-02-13 22:25:30 +02:00
jl777
3ca78e0142 Test 2018-02-13 22:06:20 +02:00
jl777
94a465a6e9 Test 2018-02-13 21:59:39 +02:00
jl777
6e94384f91 Test 2018-02-13 21:37:32 +02:00
jl777
53a94b280d Test 2018-02-13 21:34:09 +02:00
jl777
9757c8f97e Test 2018-02-13 21:33:49 +02:00
jl777
8683bd8d11 Debugging 2018-02-13 21:29:42 +02:00
jl777
577bcffb86 Merge pull request #514 from jl777/dev
-SHARK
2018-02-10 21:43:03 +02:00
jl777
8f8b5a2ac6 -SHARK 2018-02-10 21:42:04 +02:00
jl777
7a316978bd Merge pull request #513 from jl777/dev
new coins, fix sendmany, disable price feed
2018-02-10 15:13:46 +02:00
jl777
de615b43f7 Disable price feed 2018-02-10 15:12:32 +02:00
Alex Morcos
f41775b2c8 Implement helper class for CTxMemPoolEntry constructor
This is only for unit tests.
2018-02-09 18:35:25 +00:00
Pieter Wuille
934fd19744 Support -checkmempool=N, which runs checks on average once every N transactions 2018-02-09 18:35:25 +00:00
Ashley Holman
e328fa32b3 TxMemPool: Change mapTx to a boost::multi_index_container
Indexes on:
- Tx Hash
- Fee Rate (fee-per-kb)
2018-02-09 18:35:25 +00:00
Homu
e6850571dd Auto merge of #2898 - str4d:2286-nu-activation-mechanism, r=str4d
Network upgrade activation mechanism

Implements ZIP 200.

Integration with `CChainParams` inspired by https://github.com/bitcoin/bitcoin/pull/7575.

Includes block index rewinding logic cherry-picked from https://github.com/bitcoin/bitcoin/pull/8149.

Closes #2286. Part of #2905.
2018-02-07 02:33:42 -08:00
Jack Grigg
cad27eb77f Update quote from ZIP 200 2018-02-06 23:18:56 +00:00
Jack Grigg
5009136dc3 Change UI/log status message for block rewinding 2018-02-06 22:49:08 +00:00
Jack Grigg
828940b163 Use a boost::optional for nCachedBranchId
This enables us to distinguish between it being unset vs. being set to zero.
2018-02-06 22:42:18 +00:00
Scott Sadler
6e821110fd auxiliary cryptoconditions 2018-02-06 18:37:08 -03:00
jc
15fb13f629 read hashReserved from disk block index 2018-02-04 21:40:14 -05:00
Jack Grigg
149d69e36b Add method for fetching the next activation height after a given block height 2018-02-04 22:58:42 +00:00
Jack Grigg
548683767c Add Overwinter to upgrade list 2018-02-04 22:58:42 +00:00
Jack Grigg
9e851450ab Adjust rewind logic to use the network upgrade mechanism 2018-02-04 22:58:42 +00:00
Pieter Wuille
89f20450c2 Add rewind logic to deal with post-fork software updates
Includes logic for dealing with pruning by Suhas Daftuar.
2018-02-04 22:58:42 +00:00