12345678910111213141516171819 |
- from node import Node
- def create_node(meta):
- node = Node(meta)
- node.run()
- if __name__ == "__main__":
- ip = "localhost"
- node_meta = {
- "id": '0',
- "addr": ("localhost", 10000),
- "peers": {
- '1': ("localhost", 10001),
- '2': ("localhost", 10002),
- },
- }
- create_node(node_meta)
|