aboutsummaryrefslogtreecommitdiffstats
path: root/net.cpp
diff options
context:
space:
mode:
authorsubtly <subtly@users.noreply.github.com>2015-02-07 08:49:35 +0800
committersubtly <subtly@users.noreply.github.com>2015-02-07 08:49:35 +0800
commitd1078b667ca0ab56b0a508e0dd6cb80780425551 (patch)
treed1967e4972e0d66d1df88cf57e5784498183a397 /net.cpp
parent6a9caebe7a044560f8d7e1977ef994e0e29e9df8 (diff)
downloaddexon-solidity-d1078b667ca0ab56b0a508e0dd6cb80780425551.tar.gz
dexon-solidity-d1078b667ca0ab56b0a508e0dd6cb80780425551.tar.zst
dexon-solidity-d1078b667ca0ab56b0a508e0dd6cb80780425551.zip
update packet test
Diffstat (limited to 'net.cpp')
-rw-r--r--net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.cpp b/net.cpp
index 5a7e56d2..5039c543 100644
--- a/net.cpp
+++ b/net.cpp
@@ -152,7 +152,7 @@ BOOST_AUTO_TEST_CASE(test_neighbours_packet)
out.sign(k.sec());
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);
int count = 0;
for (auto n: in.nodes)