aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2022-11-21 12:51:00 +0100
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2022-11-21 13:03:35 +0100
commit40bdc8a6e4dcf7faf90f63b0912c18d72436e37f (patch)
tree0c8c445cf45a6063945e03d1d85d37243d385e92
parentdf2f16666c05f8fef2eab0811f87e60b7fb18224 (diff)
test: remove unused class `NodePongAdd1`
This class was introduced in commit fa3365430c5fb57d7c0b5f2bce9fbbe290be93c3 ("net: Use mockable time for ping/pong, add tests"), but actually never used.
-rwxr-xr-xtest/functional/p2p_ping.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/test/functional/p2p_ping.py b/test/functional/p2p_ping.py
index 52dae90d19..2919f7aa7b 100755
--- a/test/functional/p2p_ping.py
+++ b/test/functional/p2p_ping.py
@@ -12,7 +12,9 @@ from test_framework.p2p import P2PInterface
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal
+
PING_INTERVAL = 2 * 60
+TIMEOUT_INTERVAL = 20 * 60
class msg_pong_corrupt(msg_pong):
@@ -20,19 +22,11 @@ class msg_pong_corrupt(msg_pong):
return b""
-class NodePongAdd1(P2PInterface):
- def on_ping(self, message):
- self.send_message(msg_pong(message.nonce + 1))
-
-
class NodeNoPong(P2PInterface):
def on_ping(self, message):
pass
-TIMEOUT_INTERVAL = 20 * 60
-
-
class PingPongTest(BitcoinTestFramework):
def set_test_params(self):
self.setup_clean_chain = True