From fbf48b6501384c869ec7860508f081745601a96a Mon Sep 17 00:00:00 2001 From: subtly Date: Fri, 17 Apr 2015 07:54:22 -0400 Subject: [PATCH] network save/restore: merge fixes, simpler code, limit parse of require flag to peers (reflecting save code). --- peer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peer.cpp b/peer.cpp index 459b758ce..727430fc8 100644 --- a/peer.cpp +++ b/peer.cpp @@ -107,7 +107,7 @@ BOOST_AUTO_TEST_CASE(save_nodes) BOOST_REQUIRE(r.itemCount() == 3); BOOST_REQUIRE(r[0].toInt() == 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]) {