diff --git a/src/uint256.h b/src/uint256.h index eb0e9836d6..0106cd5114 100644 --- a/src/uint256.h +++ b/src/uint256.h @@ -23,6 +23,7 @@ class base_blob { protected: static constexpr int WIDTH = BITS / 8; + static_assert(BITS % 8 == 0, "base_blob currently only supports whole bytes."); std::array m_data; static_assert(WIDTH == sizeof(m_data), "Sanity check");