From f7f76b7c59731b2790696638b88847e9837ed092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Wed, 31 May 2017 10:23:06 +0200 Subject: [PATCH] BlockHeaderPolished template is broken --- libethcore/BlockInfo.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libethcore/BlockInfo.h b/libethcore/BlockInfo.h index 8cd08a7e2..44fbf7854 100644 --- a/libethcore/BlockInfo.h +++ b/libethcore/BlockInfo.h @@ -192,6 +192,7 @@ public: // TODO: make private. void populateFromHeader(RLP const& _header, Strictness _s = IgnoreSeal, h256 const& _h = h256()) { + static_assert(BlockInfoSub::SealFields == "Oops", "Oops"); BlockInfo::m_hash = _h; if (_h) assert(_h == dev::sha3(_header.data())); @@ -224,6 +225,7 @@ public: void streamRLP(RLPStream& _s) const { + static_assert(BlockInfoSub::SealFields == "Oops", "Oops"); _s.appendList(BlockInfo::BasicFields + BlockInfoSub::SealFields); BlockInfo::streamRLPFields(_s); BlockInfoSub::streamRLPFields(_s);