diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2022-01-17 20:33:16 -0500 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2022-07-18 13:39:55 -0500 |
commit | dc971be0831959e7ee6a6df9e1aa46091351a8fb (patch) | |
tree | 16dca1f909e3a69c260045cc7b89e0123da3e1e8 /src/index/base.h | |
parent | bef4e405f3de2718dfee279a9abff4daf016da26 (diff) | |
download | bitcoin-dc971be0831959e7ee6a6df9e1aa46091351a8fb.tar.xz |
indexes, refactor: Remove CBlockIndex* uses in index WriteBlock methods
Replace WriteBlock method with CustomAppend and pass BlockInfo struct
instead of CBlockIndex* pointer
This commit does not change behavior in any way.
Diffstat (limited to 'src/index/base.h')
-rw-r--r-- | src/index/base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index/base.h b/src/index/base.h index 82317c1ec2..82b8b37272 100644 --- a/src/index/base.h +++ b/src/index/base.h @@ -97,7 +97,7 @@ protected: [[nodiscard]] virtual bool CustomInit(const std::optional<interfaces::BlockKey>& block) { return true; } /// Write update index entries for a newly connected block. - virtual bool WriteBlock(const CBlock& block, const CBlockIndex* pindex) { return true; } + [[nodiscard]] virtual bool CustomAppend(const interfaces::BlockInfo& block) { return true; } /// Virtual method called internally by Commit that can be overridden to atomically /// commit more index state. |