From c38641374a4e45ba84a99a3a34431010c9d6059d Mon Sep 17 00:00:00 2001 From: subtly Date: Thu, 16 Apr 2015 22:55:12 -0400 Subject: [PATCH] Fix for fix #1475, #1476. --- peer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/peer.cpp b/peer.cpp index 2aeb99469..6b25aa959 100644 --- a/peer.cpp +++ b/peer.cpp @@ -102,6 +102,12 @@ BOOST_AUTO_TEST_CASE(save_nodes) 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); + + for (auto i: r[2]) + { + BOOST_REQUIRE(i.itemCount() == 3 || i.itemCount() == 10); + BOOST_REQUIRE(i[0].itemCount() == 4 || i[0].itemCount() == 16); + } } BOOST_AUTO_TEST_SUITE_END()