BlockchainEmulator

command module
v0.0.0-...-5fa8bf8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2024 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

BlockchainEmulator

关于项目

区块链模拟器可以模拟 PBFT 协议的区块链运行,并且测量数据。

该项目旨在:

  • 模拟 PBFT 协议的区块链运行
  • 提供运行时交易池数据测量以及其他数据测量
  • 可使用的前端

项目具有可使用的前端:

运行的前端

项目启动时将启动若干节点,每个节点对应一个命令行窗口:

运行的命令行窗口

项目运行完成后,将生成统计报表。统计报表包括 PBFT 交易池统计量:

运行后生成的分组柱状图

同时,统计报表也包括一些别的系统度量:

运行后生成的度量结果

快速开始

为了快速得到本地拷贝并快速运行,这是快速开始章节。

前置条件
  • 安装 Go 1.21
  • 安装 Powershell 7.1
  • 准备好以太坊交易数据
获取
  1. 克隆仓库
git clone https://github.com/Aj002Th/BlockchainEmulator.git
使用运行

最简单的例子是批量启动。目前仅适用于 Windows Powershell。

./run.ps1 -N 3

更具体的例子,请参看 使用手册

获取前端源码

为了克隆前端源码你应当在克隆时就递归克隆子模块。

git clone https://github.com/Aj002Th/BlockchainEmulator.git --recurse-submodules

或者,如果已经克隆了前端但没有安装子模块,那么你可以安装子模块。

git submodule init 
git submodule update

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL