diff options
author | Larry Ruane <larryruane@gmail.com> | 2020-08-07 15:07:21 -0600 |
---|---|---|
committer | Larry Ruane <larryruane@gmail.com> | 2022-10-24 13:02:37 -0600 |
commit | db929893ef0bc86ea2708cdbcf41152240cd7c73 (patch) | |
tree | c8959d80c8021bb3bcc39b2527ab603fec67a0d5 /src/wallet/spend.cpp | |
parent | c72de9990ae8f1744006d9c852023b882d5ed80c (diff) |
Faster -reindex by initially deserializing only headers
When a block is initially read from a blk*.dat file during reindexing,
it can be added to the block index only if all of its ancestor blocks
have been added, which is rare. If the block's ancestors have not been
added, the block must be re-read from disk later when it can be added.
This commit: During the initial block read, deserialize only its header,
rather than the entire block, since this is sufficient to determine
if its parent (and thus all its ancestors) has been added. This is a
performance improvement.
Diffstat (limited to 'src/wallet/spend.cpp')
0 files changed, 0 insertions, 0 deletions