diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-10-06 17:55:55 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-10-06 18:30:12 +0200 |
| commit | aedc74dfa688306c5a139a88782da74f69ba6757 (patch) | |
| tree | 9e7b2fd87c426010465298c3ab5d72ba54bad66d /src/script/interpreter.cpp | |
| parent | Merge pull request #5036 (diff) | |
| download | discoin-aedc74dfa688306c5a139a88782da74f69ba6757.tar.xz discoin-aedc74dfa688306c5a139a88782da74f69ba6757.zip | |
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 'src/script/interpreter.cpp')
0 files changed, 0 insertions, 0 deletions