Removed close gossip command

This commit is contained in:
Kevin F 2022-05-18 23:56:25 -05:00
parent 9f25291c3a
commit 85626d6642
3 changed files with 0 additions and 5 deletions

View File

@ -6,7 +6,6 @@ class GossipCommands(IntEnum):
PEER_EXCHANGE = auto()
STREAM_BLOCKS = auto()
PUT_BLOCKS = auto()
CLOSE = auto()
def command_to_byte(cmd: GossipCommands):

View File

@ -60,8 +60,6 @@ def gossip_server():
match GossipCommands(cmd):
case GossipCommands.PING:
writer.write(b'PONG')
case GossipCommands.CLOSE:
pass
case GossipCommands.ANNOUNCE:
async def _read_announce():
address = await reader.readuntil(b'\n')

View File

@ -81,7 +81,6 @@ Thread(target=_announce_server, daemon=True).start()
class OnionrClientAnnounce(unittest.TestCase):
def test_client_announce_too_long(self):
sleep(1)
import onionrplugins
our_address = "testtransport" * 100
@ -100,7 +99,6 @@ class OnionrClientAnnounce(unittest.TestCase):
self.assertNotEqual(our_address, reced_address[0])
def test_client_announce(self):
sleep(1)
import onionrplugins
our_address = "testtransport"