24 #include <unordered_map> 36 static const unsigned c_bloomIndexSize = 16;
37 static const unsigned c_bloomIndexLevels = 2;
39 static const unsigned InvalidNumber = (unsigned)-1;
49 explicit operator bool()
const {
return !
isNull(); }
75 std::array<LogBloom, c_bloomIndexSize>
blooms;
82 BlockReceipts(
RLP const& _r) {
for (
auto const& i: _r) receipts.emplace_back(i.data());
size = _r.data().size(); }
97 static const unsigned size = 65;
106 explicit operator bool()
const {
return !!blockHash; }
111 static const unsigned size = 67;
std::unordered_map< h256, BlocksBlooms > BlocksBloomsHash
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::array< T, N > toArray(int _flags=LaissezFaire) const
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.
bytesConstRef data() const
The bare data of the RLP.
std::vector< T > toVector(int _flags=LaissezFaire) const
std::unordered_map< h256, BlockDetails > BlockDetailsHash
bytes const & out() const
Read the byte stream.
TransactionAddress(RLP const &_rlp)
TransactionReceipts receipts
BlockDetails(unsigned _n, u256 _tD, h256 _p, h256s _c)
BlockReceipts(RLP const &_r)
BlockLogBlooms(RLP const &_r)
std::vector< TransactionReceipt > TransactionReceipts
_N toHash(int _flags=Strict) const
std::vector< byte > bytes
std::unordered_map< uint64_t, BlockHash > BlockHashHash
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< 256, 256, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void >> u256
std::unordered_map< h256, BlockLogBlooms > BlockLogBloomsHash
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
_T toInt(int _flags=Strict) const
Converts to int of type given; if isString(), decodes as big-endian bytestream.
Class for writing to an RLP bytestream.
Class for interpreting Recursive Linear-Prefix Data.
std::vector< LogBloom > LogBlooms
Many log blooms.
BlockHash(h256 const &_h)