aboutsummaryrefslogtreecommitdiff
path: root/src/bench/readblock.cpp
diff options
context:
space:
mode:
authorMartin Zumsande <mzumsande@gmail.com>2024-03-20 15:05:08 -0400
committerMartin Zumsande <mzumsande@gmail.com>2024-05-14 14:54:26 -0400
commit064859bbad6984a6ec85c744064abdf757807c58 (patch)
tree929e949971ec70058d4b465ed7f4b5ca346df29c /src/bench/readblock.cpp
parentfdae638e83522c28a1222e65c43d1cbca3e34cba (diff)
downloadbitcoin-064859bbad6984a6ec85c744064abdf757807c58.tar.xz
blockstorage: split up FindBlockPos function
FindBlockPos does different things depending on whether the block is known or not, as shown by the fact that much of the existing code is conditional on fKnown set or not. If the block position is known (during reindex) the function only updates the block info statistics. It doesn't actually find a block position in this case. This commit removes fKnown and splits up these two code paths by introducing a separate function for the reindex case when the block position is known. It doesn't change behavior.
Diffstat (limited to 'src/bench/readblock.cpp')
0 files changed, 0 insertions, 0 deletions