network save/restore: merge fixes, simpler code, limit parse of require flag to peers (reflecting save code).

This commit is contained in:
subtly 2015-04-17 07:54:22 -04:00
parent 7219642569
commit fbf48b6501

View File

@ -107,7 +107,7 @@ BOOST_AUTO_TEST_CASE(save_nodes)
BOOST_REQUIRE(r.itemCount() == 3);
BOOST_REQUIRE(r[0].toInt<unsigned>() == dev::p2p::c_protocolVersion);
BOOST_REQUIRE_EQUAL(r[1].toBytes().size(), 32); // secret
BOOST_REQUIRE_EQUAL(r[2].itemCount(), 5);
BOOST_REQUIRE(r[2].itemCount() >= 5);
for (auto i: r[2])
{