29 #ifdef __INTEL_COMPILER 30 #pragma warning(disable:1098) //the qualifier on this friend declaration is ignored 53 LogFilter(
h256 _earliest = EarliestBlockHash,
h256 _latest = PendingBlockHash): m_earliest(_earliest), m_latest(_latest) {}
67 bool isRangeFilter()
const;
70 std::vector<LogBloom> bloomPossibilities()
const;
73 bool matches(
Block const& _b,
unsigned _i)
const;
77 LogFilter topic(
unsigned _index,
h256 const& _t) {
if (_index < 4) m_topics[_index].insert(_t);
return *
this; }
86 h256 m_earliest = EarliestBlockHash;
87 h256 m_latest = PendingBlockHash;
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::ostream & operator<<(std::ostream &_out, BlockHeader const &_bi)
LogFilter withEarliest(h256 _e)
Access a block of memory.
LogFilter withLatest(h256 _e)
h256 latest() const
hash of latest block which should be filtered
Active model of a block within the block chain.
LogFilter address(Address _a)
LogFilter topic(unsigned _index, h256 const &_t)
h256 earliest() const
hash of earliest block which should be filtered
std::array< h256Hash, 4 > m_topics
LogFilter(h256 _earliest=EarliestBlockHash, h256 _latest=PendingBlockHash)
bool sha3(bytesConstRef _input, bytesRef o_output)
Calculate SHA3-256 hash of the given input and load it into the given output.
Class for writing to an RLP bytestream.
std::vector< LogEntry > LogEntries
std::unordered_set< h160 > AddressHash
A hash set of Ethereum addresses.