index: add [nodiscard] attribute to functions writing to the db

This commit is contained in:
furszy
2023-09-08 10:04:14 -03:00
parent eef595560e
commit c0bf667912
4 changed files with 4 additions and 4 deletions

View File

@@ -260,7 +260,7 @@ bool BlockFilterIndex::CustomAppend(const interfaces::BlockInfo& block)
return true;
}
static bool CopyHeightIndexToHashIndex(CDBIterator& db_it, CDBBatch& batch,
[[nodiscard]] static bool CopyHeightIndexToHashIndex(CDBIterator& db_it, CDBBatch& batch,
const std::string& index_name,
int start_height, int stop_height)
{