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