constant for discovery protocol version

This commit is contained in:
subtly 2015-03-22 18:33:15 +01:00
parent ca740a924b
commit ee68d16ff3

View File

@ -90,7 +90,7 @@ BOOST_AUTO_TEST_CASE(save_nodes)
RLP r(firstHostNetwork);
BOOST_REQUIRE(r.itemCount() == 3);
BOOST_REQUIRE(r[0].toInt<int>() == 1);
BOOST_REQUIRE(r[0].toInt<int>() == NodeTable::s_version);
BOOST_REQUIRE_EQUAL(r[1].toBytes().size(), 32); // secret
BOOST_REQUIRE_EQUAL(r[2].itemCount(), 5);
}