Skip to content

Commit

Permalink
Remove NODE_NETWORK bit from ping.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeowch committed Mar 14, 2015
1 parent 1c9091f commit b0b4849
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ping.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protocol_version = 70002
user_agent = /getaddr.bitnodes.io:0.1/

# Services to use for outgoing network address message
services = 1
services = 0

# Set to 1 to receive all txs
relay = 1
Expand Down
3 changes: 3 additions & 0 deletions ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def ping(self):
self.conn.ping(nonce=nonce)
except socket.error:
raise
logging.debug("%s (%s)", self.node, nonce)

self.last_ping = time.time()
key = "ping:{}-{}:{}".format(self.node[0], self.node[1], nonce)
Expand All @@ -140,6 +141,7 @@ def send_bestblockhash(self):
self.conn.inv(inventory=[(2, bestblockhash)])
except socket.error:
raise
logging.debug("%s (%s)", self.node, bestblockhash)
self.last_bestblockhash = bestblockhash

def send_addr(self):
Expand All @@ -166,6 +168,7 @@ def send_addr(self):
self.conn.addr(addr_list=addr_list)
except socket.error:
raise
logging.debug("%s (%s)", self.node, addr_list)


def task():
Expand Down

0 comments on commit b0b4849

Please sign in to comment.