Commit Graph

253 Commits

Author SHA1 Message Date
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
jl777
3959e9f32d test 2016-11-12 12:10:15 -03:00
jl777
6caf0e0ac3 test 2016-11-11 20:29:01 -03:00
jl777
f305836943 test 2016-11-11 20:26:05 -03:00
jl777
4a4e912bbe test 2016-11-11 20:15:05 -03:00
jl777
fd8dd3c26d test 2016-11-04 18:11:04 -03:00
jl777
2d4c201cef test 2016-11-04 09:16:44 -03:00
jl777
65195b3ed7 test 2016-10-29 15:17:51 -03:00
jl777
30853e4ab9 Merge remote-tracking branch 'zcash/master' into dPoW 2016-10-28 13:50:21 -03:00
jl777
429dabb503 test 2016-10-27 09:49:42 -03:00
jl777
36a6561207 test 2016-10-26 20:49:16 -03:00