forked from hush/hush3
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.
16 lines
487 B
16 lines
487 B
// Copyright (c) 2016-2020 The Hush developers
|
|
// Distributed under the GPLv3 software license, see the accompanying
|
|
// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
|
|
#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);
|
|
}
|
|
|