Increasing network protocol version number for confirmation relaying.
This commit is contained in:
parent
c5e3d5c748
commit
e23c27f1bb
2 changed files with 6 additions and 6 deletions
|
@ -54,8 +54,8 @@ TEST (message, publish_serialization)
|
|||
ASSERT_EQ (8, bytes.size ());
|
||||
ASSERT_EQ (0x52, bytes [0]);
|
||||
ASSERT_EQ (0x41, bytes [1]);
|
||||
ASSERT_EQ (0x01, bytes [2]);
|
||||
ASSERT_EQ (0x01, bytes [3]);
|
||||
ASSERT_EQ (0x02, bytes [2]);
|
||||
ASSERT_EQ (0x02, bytes [3]);
|
||||
ASSERT_EQ (0x01, bytes [4]);
|
||||
ASSERT_EQ (static_cast <uint8_t> (rai::message_type::publish), bytes [5]);
|
||||
ASSERT_EQ (0x02, bytes [6]);
|
||||
|
@ -68,8 +68,8 @@ TEST (message, publish_serialization)
|
|||
std::bitset <16> extensions;
|
||||
ASSERT_FALSE (rai::message::read_header (stream, version_max, version_using, version_min, type, extensions));
|
||||
ASSERT_EQ (0x01, version_min);
|
||||
ASSERT_EQ (0x01, version_using);
|
||||
ASSERT_EQ (0x01, version_max);
|
||||
ASSERT_EQ (0x02, version_using);
|
||||
ASSERT_EQ (0x02, version_max);
|
||||
ASSERT_EQ (rai::message_type::publish, type);
|
||||
}
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ size_t constexpr rai::message::bootstrap_server_position;
|
|||
std::bitset <16> constexpr rai::message::block_type_mask;
|
||||
|
||||
rai::message::message (rai::message_type type_a) :
|
||||
version_max (0x01),
|
||||
version_using (0x01),
|
||||
version_max (0x02),
|
||||
version_using (0x02),
|
||||
version_min (0x01),
|
||||
type (type_a)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue