Changeset View
Changeset View
Standalone View
Standalone View
src/node/blockstorage.h
| Show First 20 Lines • Show All 374 Lines • ▼ Show 20 Lines | GetFirstBlock(const CBlockIndex &upper_block LIFETIMEBOUND, | ||||
| const CBlockIndex *lower_block = nullptr) const | const CBlockIndex *lower_block = nullptr) const | ||||
| EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | ||||
| /** True if any block files have ever been pruned. */ | /** True if any block files have ever been pruned. */ | ||||
| bool m_have_pruned = false; | bool m_have_pruned = false; | ||||
| //! Check whether the block associated with this index entry is pruned or | //! Check whether the block associated with this index entry is pruned or | ||||
| //! not. | //! not. | ||||
| bool IsBlockPruned(const CBlockIndex *pblockindex) | bool IsBlockPruned(const CBlockIndex &block) const | ||||
| EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | ||||
| //! Create or update a prune lock identified by its name | //! Create or update a prune lock identified by its name | ||||
| void UpdatePruneLock(const std::string &name, | void UpdatePruneLock(const std::string &name, | ||||
| const PruneLockInfo &lock_info) | const PruneLockInfo &lock_info) | ||||
| EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | ||||
| /** Open a block file (blk?????.dat) */ | /** Open a block file (blk?????.dat) */ | ||||
| Show All 29 Lines | |||||