- Series: Kiaplog.com - Author: Tran My
- Series: Jeiwan.net - Author: Jeiwan
- Bitcoin: Learning Bitcoin Technical
- Go Blockchain: bctd-repository
- Proof of Storage: Proof-of-Storage
- Golang: version 1.18 or above.
- Makefile: install using
Scoop
of any package managements available in your local machine.
- Makefile commands: for more details please read the explanation in
Makefile
Run:
make run
Build:
make build
Clean:
make clean
Format:
make fmt
Dependencies install:
make deps
Update dependencies:
make update
- After run the make run command, run .\pdpapp.exe to see the details about this CLI application:
NAME:
ImChain - Implementation Blockchain in GoLang
USAGE:
pdpapp.exe [global options] command [command options] [arguments...]
COMMANDS:
create-wallet, cw create new storable wallet address
start, ims start blockchain server
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--wallet-addr FILE, --wa FILE Export Wallet's configuration to specific FILE (default: "config/config.json")
--config FILE, -c FILE Load configuration from specific FILE (default: "config/config.json")
--node NODE, -n NODE Load database storage from specified NODE
--help, -h show help
- Some examples of the list of usable commands:
Start the network server:
.\pdpapp.exe start -c node1 -n node1
Create new wallet address:
.\pdpapp.exe --wallet-addr node1 create-wallet
- Must change binary file with
.exe
extension to be executable in Windows environment.
- Go tests cover profile and export the results to
html
file:
go test -coverprofile cover.out
go tool cover -html=cover.out -o cover.html
- Run in default browser:
- Powershell:
Start-Process cover.html
- Bash shell:
open cover.html