diff options
author | John Newbery <john@johnnewbery.com> | 2017-11-23 09:36:35 -0500 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-11-23 10:03:22 -0500 |
commit | f2ae6f32a6e3e90d77564758383b9afbbac890b7 (patch) | |
tree | 6f532316b1bfcb5ddaea5fcb11ab0663d07775da | |
parent | ec59523c5915fb67db33149290dfc57049ba973d (diff) |
[tests] Remove mininode periodic (half-hour) ping messages
-rwxr-xr-x | test/functional/test_framework/mininode.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/test/functional/test_framework/mininode.py b/test/functional/test_framework/mininode.py index 24c96b5681..c8bd21e51f 100755 --- a/test/functional/test_framework/mininode.py +++ b/test/functional/test_framework/mininode.py @@ -20,7 +20,6 @@ import logging import socket import struct import sys -import time from threading import RLock, Thread from test_framework.messages import * @@ -208,7 +207,6 @@ class NodeConn(asyncore.dispatcher): self.socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) self.sendbuf = b"" self.recvbuf = b"" - self.last_sent = 0 self.state = "connecting" self.network = net self.cb = callback @@ -300,8 +298,6 @@ class NodeConn(asyncore.dispatcher): raise def got_message(self, message): - if self.last_sent + 30 * 60 < time.time(): - self.send_message(MESSAGEMAP[b'ping']()) self._log_message("receive", message) self.cb.deliver(self, message) @@ -353,7 +349,6 @@ class NodeConn(asyncore.dispatcher): self.sendbuf = tmsg else: self.sendbuf += tmsg - self.last_sent = time.time() # Class utility methods |