diff --git a/app/communicator/sender.py b/app/communicator/sender.py index a0c4297..4f8f846 100755 --- a/app/communicator/sender.py +++ b/app/communicator/sender.py @@ -11,6 +11,7 @@ def send(ip_address, message, port, *args): tcp_socket.connect(receiver_addr) tcp_socket.send(message.encode('utf-8')) except Exception as e: + node.remove_node(node.Node(ip_address=ip_address)) print("Connection Failed while sending", e) diff --git a/requirements.txt b/requirements.txt index 4c03f4c..0525082 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ -click==6.7 ecdsa==0.13 netifaces==0.10.6 python-dateutil==2.6.1 diff --git a/setup.py b/setup.py deleted file mode 100755 index 7d8c6eb..0000000 --- a/setup.py +++ /dev/null @@ -1,15 +0,0 @@ -from setuptools import setup - -setup( - name="mychain", - version='0.1', - py_modules=['mychain'], - install_requires=[ - 'Click', - 'ecdsa' - ], - entry_points=''' - [console_scripts] - mychain=mychain:cli - ''', -) \ No newline at end of file