diff options
author | subtly <subtly@users.noreply.github.com> | 2015-02-07 08:49:35 +0800 |
---|---|---|
committer | subtly <subtly@users.noreply.github.com> | 2015-02-07 08:49:35 +0800 |
commit | d1078b667ca0ab56b0a508e0dd6cb80780425551 (patch) | |
tree | d1967e4972e0d66d1df88cf57e5784498183a397 /net.cpp | |
parent | 6a9caebe7a044560f8d7e1977ef994e0e29e9df8 (diff) | |
download | dexon-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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |