veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
progpow_header_cache_provider.hpp
1// Copyright (c) 2019-2022 Xenios SEZC
2// https://www.veriblock.org
3// Distributed under the MIT software license, see the accompanying
4// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
5
6#ifndef VERIBLOCK_POP_CPP_PROGPOW_HEADER_CACHE_PROVIDER_HPP
7#define VERIBLOCK_POP_CPP_PROGPOW_HEADER_CACHE_PROVIDER_HPP
8
9#include <veriblock/pop/crypto/progpow/cache.hpp>
10
11namespace altintegration {
12
14 virtual ~ProgpowHeaderCache() = default;
15
17 virtual bool get(const uint256& key, uint192& value) const = 0;
18
19 bool tryGet(const uint256& key, uint192& value) override {
20 return this->get(key, value);
21 }
22
23 void clear() override {}
24};
25
26} // namespace altintegration
27
28#endif
Defines logging helpers.
Definition: block.hpp:14