aboutsummaryrefslogtreecommitdiff
path: root/contrib/linearize/example-linearize.cfg
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-10-06 17:55:55 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-10-06 18:30:12 +0200
commitaedc74dfa688306c5a139a88782da74f69ba6757 (patch)
tree9e7b2fd87c426010465298c3ab5d72ba54bad66d /contrib/linearize/example-linearize.cfg
parent5505a1b13f75af9f0f6421b42d97c06e079db345 (diff)
contrib: make linearize-data.py cope with out-of-order blocks
Make it possible to read blocks in any order. This will be required after headers-first (#4468), so should be merged before that. - Read block header. For expected blocks, continue, else skip. - For in-order blocks: copy block contents directly. Write prior out-of-order blocks if this connects a consecutive span. - For out-of-order blocks, store extents of block data for later retrieval. Cache out-of-order blocks in memory up to 100MB (configurable).
Diffstat (limited to 'contrib/linearize/example-linearize.cfg')
-rw-r--r--contrib/linearize/example-linearize.cfg2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/linearize/example-linearize.cfg b/contrib/linearize/example-linearize.cfg
index 071345f23a..e0fef13886 100644
--- a/contrib/linearize/example-linearize.cfg
+++ b/contrib/linearize/example-linearize.cfg
@@ -15,3 +15,5 @@ output_file=/home/example/Downloads/bootstrap.dat
hashlist=hashlist.txt
split_year=1
+# Maxmimum size in bytes of out-of-order blocks cache in memory
+out_of_order_cache_sz = 100000000