Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtoth committed May 29, 2019
1 parent f769a5c commit c47f046
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions electrumpersonalserver/server/peertopeer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /usr/bin/env python

import socket, time, random
import socket, time
import base64
from struct import pack, unpack
from datetime import datetime
Expand All @@ -21,9 +21,6 @@
# length of bitcoin p2p packets
HEADER_LENGTH = 24

# how many times to connect to peer before giving up
MAX_CONNECTION_ATTEMPTS = 10

# if no message has been seen for this many seconds, send a ping
KEEPALIVE_INTERVAL = 2 * 60

Expand Down Expand Up @@ -174,7 +171,6 @@ def __init__(self, p2p_message_handler, remote_hostport,
self.magic = 0xd9b4bef9

self.closed = False
self.connection_attempts = MAX_CONNECTION_ATTEMPTS

self.remote_hostport = remote_hostport

Expand Down

0 comments on commit c47f046

Please sign in to comment.