bitcoinlitelite

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

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

Go to latest
Published: Jul 28, 2017 License: MIT Imports: 11 Imported by: 0

README

bitcoinLiteLite

a simple crypto currency implementation like bitcoin



  • 说明:
    • 该项目是基于bitcoin的设计来写的,目前v0.1.0目标是完成一个最小的可运行的bitcoin网络

运行

目前暂定首个节点 端口是 8091,在代码 https://github.com/jasoncodingnow/bitcoinLiteLite/blob/master/main.go L 110,请自行修改为当前机器的局域网地址

git clone https://github.com/jasoncodingnow/bitcoinLiteLite.git
cd github.com/jasoncodingnow/bitcoinLiteLite

go build .
// 启动第一个节点
./bitcoinLiteLite port 8091
// 查看console可以看到第一个节点的 publicKey, 假设是 8091PUBLISKEY

// 启动第二个节点
./bitcoinLiteLite port 8092

// 测试 由第二个节点生成一笔Transaction,并广播
// 目前,5个Transaction会打包,或者比如1个Transaction,会在1分钟内打包
// 在第二个节点的console输入Transaction命令。第一个参数是要传播给谁,第二个参数是消息是什么
8091PUBLISKEY hi

// 等待一分钟打包

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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