1 Star 0 Fork 0

冯文浩 / strongchain-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

StrongChain

Description

This proof-of-concept implementation contains full node that runs mining process and at the same time provide an interactive client interface to the user. Particular nodes can be run anytime, as blockchain is synchronized on start up. The implementation uses account/balance model (not UTXO).

Running Nodes

Running a Known node

In the first shell, let log messages to be displayed on the fly:

$ tail -f -n0 ./logs/node-1.log

In the second shell, run a node, and its client interface, respectively:

$ python3 ./BaseNode1.py [--verbose] [--selfish]

Running Other Known Nodes

Our implementation support 3 known nodes - called base nodes. To run them, use the previous commands with index of node changed to 2 and 3.

Running an Unknown Node

In one shell:

$ tail -f -n0 ./logs/node-1000.log

In the next shell:

$ python3 ./UnknownNode4.py

Interacting with the client

Display help and all available commands:

> help

[chain]: displays current blockchain

[txns]: displays all transactions made by this client

[stats]: displays statistics about miners

[balance[s]]: get my balance | all balances

[send RECEIVER, AMOUNT [, COMMENT]]: sends crypto-tokens to RECEIVER, including optional comment

[block ID]: displays info about block with length = ID

[whdrs]: displays current cache of weak headers

[exit | quit]: ends operation of this node

[verbose [on | off]] enables verbose at log file.

[help | h]: shows this help

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/funmary/strongchain-demo.git
git@gitee.com:funmary/strongchain-demo.git
funmary
strongchain-demo
strongchain-demo
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891