c2

command
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 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

初识tendermint

了解tendermint应用开发流程,学习tendermint工具链的使用。

按以下步骤执行示例代码:

1、初始化节点

进入1#终端,执行以下命令初始化节点:

~$ tendermint init

2、启动节点

进入1#终端,执行以下命令启动节点:

~$ tendermint node

按ctrl+c终止节点运行,或者在另一个终端输入如下命令:

~$ pkill -9 tendermint

3、启动abci应用

进入2#终端,执行以下命令启动应用:

~$ cd ~/repo/go/src/hubwiz.com/c2
~/repo/go/src/hubwiz.com/c2$ go run mini-app.go

4、提交交易

进入3#终端,执行以下命令提交交易:

~$ curl localhost:26657/broadcast_tx_commit?tx=0x12345678

5、查看区块信息

进入3#终端,执行以下命令查看指定高度的区块:

~$ curl localhost:26657/block?height=1

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