aboutsummaryrefslogtreecommitdiffstats
path: root/peer.cpp
diff options
context:
space:
mode:
authorsubtly <subtly@users.noreply.github.com>2015-03-23 01:33:15 +0800
committersubtly <subtly@users.noreply.github.com>2015-03-23 01:33:15 +0800
commitee68d16ff3d24520d846d17c34fb1eda600a2f8f (patch)
tree5523bfd33c98b3a59969a07c33b125d266338359 /peer.cpp
parentca740a924bc06a9f8eac4c3950f1419857d56c08 (diff)
downloaddexon-solidity-ee68d16ff3d24520d846d17c34fb1eda600a2f8f.tar.gz
dexon-solidity-ee68d16ff3d24520d846d17c34fb1eda600a2f8f.tar.zst
dexon-solidity-ee68d16ff3d24520d846d17c34fb1eda600a2f8f.zip
constant for discovery protocol version
Diffstat (limited to 'peer.cpp')
-rw-r--r--peer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/peer.cpp b/peer.cpp
index 14712d4f..4732d319 100644
--- a/peer.cpp
+++ b/peer.cpp
@@ -90,7 +90,7 @@ BOOST_AUTO_TEST_CASE(save_nodes)
RLP r(firstHostNetwork);
BOOST_REQUIRE(r.itemCount() == 3);
- BOOST_REQUIRE(r[0].toInt<int>() == 1);
+ BOOST_REQUIRE(r[0].toInt<int>() == NodeTable::s_version);
BOOST_REQUIRE_EQUAL(r[1].toBytes().size(), 32); // secret
BOOST_REQUIRE_EQUAL(r[2].itemCount(), 5);
}