在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):aviaviavi/legion开源软件地址(OpenSource Url):https://github.com/aviaviavi/legion开源编程语言(OpenSource Language):Haskell 100.0%开源软件介绍(OpenSource Introduction):Legion - a simple blockchain implementationAn as-simple-as-possible blockchain server inspired by naivechain, but written in Haskell. Spinning up several Legion nodes creates a peer to peer network that syncronizes the block chain across the network. Prereqs: To compile from source, you'll need stack. Alternatively, you can get a precompiled pre-release binary. Note: if you download the binary from github, you'll need to mark it executable by running:
Usage:
Examples:
By default, legion will log what it's doing to standard out. In another terminal window:
Alternatively, you grab the binaries from the github releases, and run that directly rather than via The 3rd argument tells the node where a seed node can be found to bootstrap the connection to the peer to peer network. The current state of the (valid) blockchain will be fetched from all servers, and it will automatically keep itself updated and post its own updated to others. Now that 2 nodes are now synced, and you can view the current chain from either node at http://localhost:$httpPort/chain, eg http://localhost:8001/chain Add a new block to the blockchain via a POST request to /block:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论