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