refactor: rename BlockKey to BlockRef

This commit is contained in:
Sjors Provoost
2024-08-12 11:08:59 +02:00
parent 9f1aa88d4d
commit 89a8f74bbb
8 changed files with 33 additions and 18 deletions

View File

@@ -113,7 +113,7 @@ bool BaseIndex::Init()
// Child init
const CBlockIndex* start_block = m_best_block_index.load();
if (!CustomInit(start_block ? std::make_optional(interfaces::BlockKey{start_block->GetBlockHash(), start_block->nHeight}) : std::nullopt)) {
if (!CustomInit(start_block ? std::make_optional(interfaces::BlockRef{start_block->GetBlockHash(), start_block->nHeight}) : std::nullopt)) {
return false;
}