Paweł Bylica
8 years ago
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with
2 additions and
0 deletions
-
libethcore/BlockInfo.h
|
@ -192,6 +192,7 @@ public: |
|
|
// TODO: make private.
|
|
|
// TODO: make private.
|
|
|
void populateFromHeader(RLP const& _header, Strictness _s = IgnoreSeal, h256 const& _h = h256()) |
|
|
void populateFromHeader(RLP const& _header, Strictness _s = IgnoreSeal, h256 const& _h = h256()) |
|
|
{ |
|
|
{ |
|
|
|
|
|
static_assert(BlockInfoSub::SealFields == "Oops", "Oops"); |
|
|
BlockInfo::m_hash = _h; |
|
|
BlockInfo::m_hash = _h; |
|
|
if (_h) |
|
|
if (_h) |
|
|
assert(_h == dev::sha3(_header.data())); |
|
|
assert(_h == dev::sha3(_header.data())); |
|
@ -224,6 +225,7 @@ public: |
|
|
|
|
|
|
|
|
void streamRLP(RLPStream& _s) const |
|
|
void streamRLP(RLPStream& _s) const |
|
|
{ |
|
|
{ |
|
|
|
|
|
static_assert(BlockInfoSub::SealFields == "Oops", "Oops"); |
|
|
_s.appendList(BlockInfo::BasicFields + BlockInfoSub::SealFields); |
|
|
_s.appendList(BlockInfo::BasicFields + BlockInfoSub::SealFields); |
|
|
BlockInfo::streamRLPFields(_s); |
|
|
BlockInfo::streamRLPFields(_s); |
|
|
BlockInfoSub::streamRLPFields(_s); |
|
|
BlockInfoSub::streamRLPFields(_s); |
|
|