6 #ifndef KAGOME_CODE_SUBSTITUTES_HPP 7 #define KAGOME_CODE_SUBSTITUTES_HPP 9 #include <initializer_list> 10 #include <unordered_set> 20 :
public std::unordered_set<primitives::BlockId> {
25 std::initializer_list<primitives::BlockId> init)
26 : unordered_set<primitives::
BlockId>(init) {}
34 return count(block_info.
number) != 0 || count(block_info.
hash) != 0;
38 return count(block_id) != 0;
44 #endif // KAGOME_CODE_SUBSTITUTES_HPP bool contains(const primitives::BlockId &block_id) const
CodeSubstituteBlockIds()=default
CodeSubstituteBlockIds(std::initializer_list< primitives::BlockId > init)
bool contains(const primitives::BlockInfo &block_info) const
CodeSubstituteBlockIds & operator=(const CodeSubstituteBlockIds &src)=default
boost::variant< BlockHash, BlockNumber > BlockId
Block id is the variant over BlockHash and BlockNumber.
~CodeSubstituteBlockIds()=default