chain
Edgencechain is a pocket-sized implementation of Bitcoin. Its goal is to be a compact, understandable, working incarnation of the Nakamoto consensus algorithm at the expense of advanced functionality, speed, and any real usefulness.
- python3 main.py
- 每个node要有一份独立的代码拷贝,并且要配置一个未被占用的端口。端口的设置是在params/Params.py的PORT_CURRENT字段。 举例:将该节点的端口设置为9997: * PORT_CURRENT = int(9997)*
- 如果该节点要与已经在运行的节点连接,则必须配置该参数,该参数位于params/Params.py的PEERS字段,节点由一个Tuple类型的(ip,port)表示其ip和port信息。可以配置多个这样的节点。 PEERS: Iterable[Tuple] = list([('127.0.0.1', 9997)])