updates of main.py, util and bootstrap
This commit is contained in:
parent
fe43a4d03d
commit
a9837a80f4
3 changed files with 12 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
import util
|
||||
from util import string_to_bin
|
||||
import random
|
||||
|
||||
|
||||
|
@ -7,8 +7,7 @@ class Node(object):
|
|||
self._ip, self._port, self._tox_key, self.rand = ip, port, tox_key, rand
|
||||
|
||||
def get_data(self):
|
||||
# TODO: return tox_key in binary format
|
||||
return self._ip, self._port, self._tox_key
|
||||
return self._ip, self._port, string_to_bin(self._tox_key)
|
||||
|
||||
|
||||
def node_generator():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue