Hush Full Node software. We were censored from Github, this is where all development happens now.
https://hush.is
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
306 B
14 lines
306 B
![]()
8 years ago
|
#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);
|
||
|
}
|