mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
network save/restore: merge fixes, simpler code, limit parse of require flag to peers (reflecting save code).
This commit is contained in:
parent
7219642569
commit
fbf48b6501
2
peer.cpp
2
peer.cpp
@ -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])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user