Compare commits
No commits in common. "22070358c1ded8d4ee4ce89f0ea0a3087ddcc37a" and "f9f6265afbade2af9f1d5fc0a6a53cb9f8037bbf" have entirely different histories.
22070358c1
...
f9f6265afb
39
README.md
39
README.md
@ -1,40 +1,3 @@
|
|||||||
# BlockchainConsensusAlgorithm
|
# BlockchainConsensusAlgorithm
|
||||||
|
|
||||||
## 介绍
|
使用Python实现了区块链的DPOS和POW共识算法,并使用Flask框架编写了API接口
|
||||||
使用 `Python` 实现了区块链的 `DPOS` 和 `POW` 共识算法,并使用 `Flask` 框架编写了 `API` 接口
|
|
||||||
|
|
||||||
## 获取项目
|
|
||||||
```shell
|
|
||||||
git clone -b main --depth 1 https://git.intpointer.com/Anchor-x/BlockchainConsensusAlgorithm.git
|
|
||||||
```
|
|
||||||
|
|
||||||
## 项目启动
|
|
||||||
|
|
||||||
### 安装依赖
|
|
||||||
|
|
||||||
使用 `miniconda` 进行环境管理
|
|
||||||
```shell
|
|
||||||
conda create -n BlockchainConsensusAlgorithm python=3.12.3
|
|
||||||
```
|
|
||||||
|
|
||||||
```shell
|
|
||||||
pip install -r requirements.txt
|
|
||||||
```
|
|
||||||
|
|
||||||
### 运行
|
|
||||||
|
|
||||||
#### DPOS
|
|
||||||
```shell
|
|
||||||
cd DPOS
|
|
||||||
python dpos_api.py
|
|
||||||
```
|
|
||||||
|
|
||||||
#### POW
|
|
||||||
```shell
|
|
||||||
cd POW
|
|
||||||
python pow_api.py
|
|
||||||
```
|
|
||||||
|
|
||||||
## 测试
|
|
||||||
使用 `ApiFox` 进行测试或使用
|
|
||||||
|
|
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
Loading…
Reference in New Issue
Block a user