Skip to content

Commit 986ac9c

Browse files
authored
Merge pull request #1769 from evoskuil/master
Fix outpoint size (64 bit vs 32 bit value).
2 parents ea89bed + 851583d commit 986ac9c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/bitcoin/system/chain/outpoint.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class BC_API outpoint
4040

4141
static constexpr size_t serialized_size() NOEXCEPT
4242
{
43-
return point::serialized_size() + sizeof(uint32_t);
43+
return point::serialized_size() + sizeof(uint64_t);
4444
}
4545

4646
/// Constructors.

test/chain/outpoint.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ BOOST_AUTO_TEST_CASE(outpoint__is_null__default_null__true)
178178

179179
BOOST_AUTO_TEST_CASE(outpoint__serialized_size__always__expected)
180180
{
181-
static_assert(outpoint::serialized_size() == point::serialized_size() + sizeof(uint32_t));
182-
BOOST_REQUIRE_EQUAL(outpoint::serialized_size(), point::serialized_size() + sizeof(uint32_t));
181+
static_assert(outpoint::serialized_size() == point::serialized_size() + sizeof(uint64_t));
182+
BOOST_REQUIRE_EQUAL(outpoint::serialized_size(), point::serialized_size() + sizeof(uint64_t));
183183
}
184184

185185
// json

0 commit comments

Comments
 (0)