6#ifndef VERIBLOCK_POP_CPP_CACHE_ENTRY
7#define VERIBLOCK_POP_CPP_CACHE_ENTRY
14#include "veriblock/pop/crypto/progpow/ethash.hpp"
15#include "veriblock/pop/serde.hpp"
16#include "veriblock/pop/uint.hpp"
17#include "veriblock/pop/validation_state.hpp"
28 std::shared_ptr<progpow::ethash_cache> light =
nullptr;
29 std::vector<uint32_t> dag;
41 virtual std::shared_ptr<CacheEntry> getOrDefault(
42 uint64_t epoch, std::function<std::shared_ptr<CacheEntry>()> factory) = 0;
44 virtual void clear() = 0;
54 virtual void clear() = 0;
Class that is used for storing validation state.
Binary writer that is useful for binary serialization.
bool DeserializeFromVbkEncoding(ReadStream &stream, AltBlockAddon &out, ValidationState &state)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Binary reading stream, that is useful during binary deserialization.