Work on improving peer list

Need to "update" the peer list instead of wipe it out and write a new
one. This is just started, so not implemented yet.
This commit is contained in:
Cort Buffington 2013-08-01 15:45:57 -05:00
parent 530a6fc612
commit e575186fc3
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,10 @@ def process_peer_list(_data, _network):
# if not in the current list, add it...
# if in the current list, but not in what we received, remove it...
# then take out the he ugliness that is below here (and up above where it deletes the whol list)
# for radio_id in NETWORK[_network]['PEERS']:
# print(binascii.b2a_hex(radio_id['RADIO_ID']))
# if hex_radio_id in radio_id['RADIO_ID']:
# print('---->', radio_id)
NETWORK[_network]['PEERS'].append({
'RADIO_ID': hex_radio_id,