Commit Graph

263 Commits

Author SHA1 Message Date
jl777
68c266b2ba test 2017-01-25 14:46:21 +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
Jack Grigg
c0ec0e756b Fix bug in IncrementNoteWitness() 2016-12-13 22:53:52 +13:00
Jack Grigg
6f78f4f44c Only check cache validity for witnesses being incremented or decremented
Fixes the bug resulting from #1904.
2016-12-13 09:34:55 +13: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
9d2cc3a784 Make the test pass by fixing the bug! 2016-12-10 00:56:32 +13:00
jl777
438eef939e test 2016-12-03 12:45:35 -03:00
jl777
637e8c9536 test 2016-12-03 12:14:46 -03:00
jl777
57d9cfcc31 test 2016-12-03 12:01:28 -03:00
jl777
8432a64f0e test 2016-12-03 11:41:16 -03:00
Jack Grigg
03f83b9b0d Write witness caches when writing the best block
For steady-state operation, this reduces the average time between wallet disk
writes from once per block to once per hour.

On -rescan, witness caches are only written out at the end along with the best
block, increasing speed while ensuring that on-disk state is kept consistent.

Witness caches are now never recreated during a -reindex, on the assumption that
the blocks themselves are not changing (the chain is just being reconstructed),
and so the witnesses will remain valid.

Part of #1749.
2016-11-30 14:04:37 +13:00
jl777
3ec03ada29 test 2016-11-17 12:29:01 -03:00
jl777
55d97e1a6e test 2016-11-15 18:03:57 -03:00
jl777
98f682257a test 2016-11-15 17:59:15 -03:00
jl777
38dfbe150a test 2016-11-15 17:57:55 -03:00
jl777
8726269f8e test 2016-11-15 17:48:54 -03:00
jl777
9f87f0dcc5 test 2016-11-15 17:41:40 -03:00
jl777
b8adc56428 test 2016-11-15 17:29:05 -03:00
jl777
9067057a50 test 2016-11-15 17:19:11 -03:00
jl777
5c439232dd test 2016-11-15 17:11:40 -03:00
jl777
258748f591 test 2016-11-15 17:10:24 -03:00
jl777
d8a120e3ac test 2016-11-15 17:04:57 -03:00
jl777
0f48575519 test 2016-11-15 16:48:18 -03:00
jl777
b82f1051b5 test 2016-11-15 16:36:00 -03:00
jl777
29c91a290b test 2016-11-15 16:31:44 -03:00
jl777
15649f727d test 2016-11-15 16:28:56 -03:00
jl777
41d80d3bc7 test 2016-11-15 16:15:14 -03:00
jl777
03ee4b8f89 test 2016-11-15 16:07:46 -03:00
jl777
bd99d1f236 test 2016-11-15 15:45:04 -03:00
jl777
f6356642b0 test 2016-11-15 15:36:44 -03:00
jl777
68713b786f test 2016-11-15 15:16:15 -03:00
jl777
2f0645568b test 2016-11-15 14:54:20 -03:00
jl777
e9e8044e66 test 2016-11-15 14:45:45 -03:00
jl777
cdf5620346 test 2016-11-15 14:37:21 -03:00
jl777
be4f847b2e test 2016-11-15 13:38:56 -03:00
jl777
779d962f33 test 2016-11-15 13:37:51 -03:00
jl777
0a72b10ad5 test 2016-11-15 13:28:43 -03:00
jl777
0ad6a46368 test 2016-11-15 13:18:43 -03:00
jl777
798f28c7d3 test 2016-11-15 12:27:14 -03:00
jl777
ff3fb0f161 test 2016-11-15 11:23:06 -03:00
jl777
ce906ce757 test 2016-11-15 11:17:55 -03:00
jl777
7c29073fa4 test 2016-11-15 10:54:01 -03:00
jl777
0fec0cc4b3 test 2016-11-15 10:38:38 -03:00
Jack Grigg
a4ef3aa9b5 Clear witnessHeight and nWitnessCacheSize in ClearNoteWitnessCache 2016-11-15 17:53:41 +13:00
Jack Grigg
ccfd8aae1d Add code comments about CNoteData::witnessHeight 2016-11-15 16:42:22 +13:00
Jack Grigg
4a6a48479d Copy over CNoteData::witnessHeight when updating wallet tx 2016-11-15 14:08:41 +13:00
Jack Grigg
40ef121e6a Correctly set CNoteData::witnessHeight when decrementing witness caches
Closes #1715
2016-11-15 14:08:35 +13:00
jl777
a547ea39b6 test 2016-11-14 15:32:28 -03:00
jl777
073a37a2dc test 2016-11-14 15:10:42 -03:00