Daira Hopwood
8 years ago
6 changed files with 41 additions and 10 deletions
@ -0,0 +1,13 @@ |
|||
#include <gtest/gtest.h> |
|||
|
|||
#include "primitives/block.h" |
|||
|
|||
|
|||
TEST(block_tests, header_size_is_expected) { |
|||
// Dummy header with an empty Equihash solution.
|
|||
CBlockHeader header; |
|||
CDataStream ss(SER_NETWORK, PROTOCOL_VERSION); |
|||
ss << header; |
|||
|
|||
ASSERT_EQ(ss.size(), CBlockHeader::HEADER_SIZE); |
|||
} |
Loading…
Reference in new issue