Commit Graph

3110 Commits

Author SHA1 Message Date
Pieter Wuille
bfa832c7ed Reduce checkpoints' effect on consensus.
Instead of only checking height to decide whether to disable script checks,
actually check whether a block is an ancestor of a checkpoint, up to which
headers have been validated. This means that we don't have to prevent
accepting a side branch anymore - it will be safe, just less fast to
do.

We still need to prevent being fed a multitude of low-difficulty headers
filling up our memory. The mechanism for that is unchanged for now: once
a checkpoint is reached with headers, no headers chain branching off before
that point are allowed anymore.
2017-03-03 10:57:07 -08:00
Philip Kaufmann
db954a65ac use const references where appropriate 2017-03-03 10:57:05 -08:00
Jack Grigg
1f015f6afa Add a flag for enabling experimental features 2017-02-09 22:10:58 +00:00
Jonas Schnelli
6a793d9c27 use CBlockIndex* insted of uint256 for UpdatedBlockTip signal
- removes mapBlockIndex find operation
- theoretically allows removing the cs_main lock during zqm notification while introducing a new file position lock
2017-02-08 22:10:42 +00:00
João Barbosa
7e6ec078fa Add UpdatedBlockTip signal to CMainSignals and CValidationInterface 2017-02-08 22:10:42 +00:00
jl777
9f1ae77daf test 2017-02-08 10:20:30 +02:00
jl777
e4b3ad624a test 2017-02-08 09:54:00 +02:00
jl777
7a90b9dd6b maturity 2017-02-06 10:16:12 +02:00
jl777
f4cb12ab28 cap txfee at 5% in absurd 2017-02-04 16:19:23 +02:00
jl777
057d9ad834 absurd fee 2017-02-04 16:16:25 +02:00
jl777
91d30d4979 absurd fee exception 2017-02-04 16:14:33 +02:00
jl777
5603bd7a20 test 2017-02-03 17:03:16 +02:00
jl777
d042777bca test 2017-02-03 16:56:54 +02:00
jl777
b34b7b3180 test 2017-02-03 16:27:51 +02:00
jl777
5304e9459b test 2017-02-03 16:14:40 +02:00
jl777
13931733fb fix 2017-02-03 16:10:18 +02:00
jl777
446ad3a736 test 2017-01-31 00:33:24 +02:00
jl777
e9d2451373 test 2017-01-30 11:03:17 +02:00
jl777
4e038ef547 test 2017-01-29 22:37:35 +02:00
jl777
0d1b1789cb relax absurd fee threshold 2017-01-25 22:36:24 +02:00
jl777
2f60e36d15 test 2017-01-25 15:15:47 +02:00
jl777
6bc7804a33 test 2017-01-25 15:05:36 +02:00
jl777
9d92c93d5a test 2017-01-25 15:04:09 +02:00
jl777
68c266b2ba test 2017-01-25 14:46:21 +02:00
jl777
f10bf3abfc test 2017-01-25 09:35:34 +02:00
jl777
3ced93646d Merge remote-tracking branch 'zcash/master' into dev
# Conflicts:
#	.gitignore
#	README.md
#	src/Makefile.gtest.include
#	src/gtest/test_checkblock.cpp
#	src/init.cpp
#	src/main.cpp
#	src/main.h
#	src/rpcserver.cpp
#	src/test/checkblock_tests.cpp
#	src/util.cpp
2017-01-25 09:26:28 +02:00
Jack Grigg
207924a1d5 Remove OpenSSL PRNG reseeding
Per https://download.libsodium.org/doc/generating_random_data/ reseeding the
default libsodium PRNG is not required.
2017-01-23 17:06:54 +01:00
jl777
f92cbc543d test 2017-01-04 14:07:09 +02:00
jl777
05654b62c4 test 2016-12-15 10:45:10 +02:00
jl777
bc17ac4928 Merge remote-tracking branch 'zcash/master' into rebase
# Conflicts:
#	README.md
#	src/Makefile.gtest.include
#	src/chainparams.cpp
#	src/init.cpp
#	src/miner.cpp
#	src/wallet/wallet.cpp
2016-12-12 12:19:13 +02:00
Jack Grigg
6fb8d0c2d6 Skip JoinSplit verification before the last checkpoint
Part of #1749
2016-12-09 21:06:45 +13: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
jl777
f8b5c1642c test 2016-12-05 20:51:58 +02:00
jl777
c023699ab5 test 2016-12-03 11:28:36 -03:00
jl777
49c783e32d test 2016-12-03 11:24:05 -03:00
jl777
0398360fd1 test 2016-12-01 16:12:26 -03:00
jl777
76a5bb2782 test 2016-12-01 12:05:13 -03:00
jl777
756271276c test 2016-12-01 10:45:56 -03:00
jl777
763747109f test 2016-12-01 10:43:35 -03:00
jl777
8985164dec test 2016-12-01 10:36:13 -03:00
jl777
7a82f2fc73 test 2016-11-21 18:28:30 -03:00
jl777
cc0f93da2e test 2016-11-21 17:47:23 -03:00
jl777
e4d89f433c test 2016-11-19 18:09:04 -03:00
jl777
43450135b5 test 2016-11-19 18:07:04 -03:00
jl777
f595c2e0f8 test 2016-11-19 17:01:44 -03:00
Simon
4e3ac9b015 Fix stale comment referencing upstream block interval 2016-11-18 10:26:20 -08:00
jl777
9db90ea9b3 test 2016-11-18 12:22:30 -03:00
jl777
7d4d546862 test 2016-11-18 11:46:31 -03:00
jl777
d3875b05aa test 2016-11-18 11:46:09 -03:00
jl777
d7093b3380 test 2016-11-18 11:44:12 -03:00