diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2021-04-18 23:06:18 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2022-04-25 23:22:00 +0200 |
commit | f08c9fb0c6a799e3cb75ca5f763a746471625beb (patch) | |
tree | cf2cb7bbf15a69cf52bc997ac26305adf3907227 /src/index/blockfilterindex.h | |
parent | 2561823531c25e1510c107eb41de944b00444ce0 (diff) | |
download | bitcoin-f08c9fb0c6a799e3cb75ca5f763a746471625beb.tar.xz |
Index: Use prune locks for blockfilterindex
Prior to this change blocks could be pruned up to the last block before the blockfilterindex current best block.
Diffstat (limited to 'src/index/blockfilterindex.h')
-rw-r--r-- | src/index/blockfilterindex.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index/blockfilterindex.h b/src/index/blockfilterindex.h index a049019c02..b1836fe12f 100644 --- a/src/index/blockfilterindex.h +++ b/src/index/blockfilterindex.h @@ -38,6 +38,8 @@ private: /** cache of block hash to filter header, to avoid disk access when responding to getcfcheckpt. */ std::unordered_map<uint256, uint256, FilterHeaderHasher> m_headers_cache GUARDED_BY(m_cs_headers_cache); + bool AllowPrune() const override { return true; } + protected: bool Init() override; |