Work on Master Support

This commit is contained in:
Cort Buffington 2014-05-08 08:29:57 -05:00
parent 71b35032a0
commit 182fe4f93b
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ def process_peer_list(_data, _network):
_peer_list_length = int(h(_data[5:7]), 16)
# Record the number of peers in the data structure... we'll use it later (11 bytes per peer entry)
NETWORK[_network]['LOCAL']['NUM_PEERS'] = _peer_list_length/11
logger.info('(%s) Peer List Received from Master: %s peers in this IPSC', _network, _peer_list_length/11)
logger.info('(%s) Peer List Received from Master: %s peers in this IPSC', _network, NETWORK[_network]['LOCAL']['NUM_PEERS'])
# Iterate each peer entry in the peer list. Skip the header, then pull the next peer, the next, etc.
for i in range(7, _peer_list_length +7, 11):