We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
NodePongAdd1
1 parent df2f166 commit 40bdc8aCopy full SHA for 40bdc8a
test/functional/p2p_ping.py
@@ -12,27 +12,21 @@
12
from test_framework.test_framework import BitcoinTestFramework
13
from test_framework.util import assert_equal
14
15
+
16
PING_INTERVAL = 2 * 60
17
+TIMEOUT_INTERVAL = 20 * 60
18
19
20
class msg_pong_corrupt(msg_pong):
21
def serialize(self):
22
return b""
23
24
-class NodePongAdd1(P2PInterface):
- def on_ping(self, message):
25
- self.send_message(msg_pong(message.nonce + 1))
26
-
27
28
class NodeNoPong(P2PInterface):
29
def on_ping(self, message):
30
pass
31
32
33
-TIMEOUT_INTERVAL = 20 * 60
34
35
36
class PingPongTest(BitcoinTestFramework):
37
def set_test_params(self):
38
self.setup_clean_chain = True
0 commit comments