24 #include <unordered_map> 36 static const unsigned c_bloomIndexSize = 16;
37 static const unsigned c_bloomIndexLevels = 2;
39 static const unsigned c_invalidNumber = (unsigned)-1;
49 explicit operator bool()
const {
return !
isNull(); }
75 std::array<LogBloom, c_bloomIndexSize>
blooms;
97 static const unsigned size = 65;
111 static const unsigned size = 67;
std::unordered_map< h256, BlocksBlooms > BlocksBloomsHash
_T toInt(int _flags=Strict) const
Converts to int of type given; if isData(), decodes as big-endian bytestream.
std::array< LogBloom, c_bloomIndexSize > blooms
BlocksBlooms(RLP const &_r)
bytes rlp(_T _t)
Export a single item in RLP format, returning a byte array.
std::unordered_map< h256, BlockDetails > BlockDetailsHash
TransactionAddress(RLP const &_rlp)
TransactionReceipts receipts
BlockDetails(unsigned _n, u256 _tD, h256 _p, h256s _c)
static const unsigned size
BlockReceipts(RLP const &_r)
BlockLogBlooms(RLP const &_r)
std::vector< TransactionReceipt > TransactionReceipts
std::array< T, N > toArray(int _flags=LaissezFaire) const
bytesConstRef data() const
The bare data of the RLP.
u256 constexpr Invalid256
std::vector< byte > bytes
static const unsigned size
std::vector< T > toVector(int _flags=LaissezFaire) const
std::unordered_map< uint64_t, BlockHash > BlockHashHash
bytes const & out() const
Read the byte stream.
std::unordered_map< h256, BlockLogBlooms > BlockLogBloomsHash
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< 256, 256, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void > > u256
std::unordered_map< h256, TransactionAddress > TransactionAddressHash
std::unordered_map< h256, BlockReceipts > BlockReceiptsHash
h2048 LogBloom
The log bloom's size (2048-bit).
std::vector< h256 > h256s
Class for writing to an RLP bytestream.
_N toHash(int _flags=Strict) const
std::vector< LogBloom > LogBlooms
Many log blooms.
BlockHash(h256 const &_h)