mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
update packet test
This commit is contained in:
parent
6a9caebe7a
commit
d1078b667c
2
net.cpp
2
net.cpp
@ -152,7 +152,7 @@ BOOST_AUTO_TEST_CASE(test_neighbours_packet)
|
|||||||
out.sign(k.sec());
|
out.sign(k.sec());
|
||||||
|
|
||||||
bytesConstRef packet(out.data.data(), out.data.size());
|
bytesConstRef packet(out.data.data(), out.data.size());
|
||||||
bytesConstRef rlpBytes(packet.cropped(97, packet.size() - 97));
|
bytesConstRef rlpBytes(packet.cropped(h256::size + Signature::size + 1));
|
||||||
Neighbours in = Neighbours::fromBytesConstRef(to, rlpBytes);
|
Neighbours in = Neighbours::fromBytesConstRef(to, rlpBytes);
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (auto n: in.nodes)
|
for (auto n: in.nodes)
|
||||||
|
Loading…
Reference in New Issue
Block a user