启动burrow
启动一个单节点 | 输出配置信息 | 启动节点
burrow.exe spec -v1 | burrow.exe configure -s- | burrow.exe start -c-
启动一个单节点 | 输出配置文件 | 启动节点
burrow spec -f1 -v1 -p1 -d1 -x=pld -n=chain-pld | burrow configure -s- --pool | burrow.exe start -c-
多节点运行
1、生成2个全类型账户
burrow spec -f2 | burrow configure -s- --pool
2、启动burrow
burrow start -c burrow000.toml
burrow start -c burrow001.toml
3、局域网需要修改.toml
[Tendermint]
Enabled = true
Seeds = ""
SeedMode = false
PersistentPeers = "tcp://e6fa3241b23b791af6d09850718bdd926d839c8b@192.168.1.12:26656,tcp://67dbc5a526482308b4b14727f596c7f76d3e885e@192.168.1.14:26656"
ListenHost = "192.168.1.12"
ListenPort = "26656"
ExternalAddress = ""
AddrBookStrict = false
Moniker = ""
IdentifyPeers = false
AuthorizedPeers = ""
CreateEmptyBlocks = "5m"
启动查看区块信息是否同步,俩个节点LatestBlockHeight一样即可
nwc$ show b
{
"LatestBlockHeight": 5,
"LatestBlockHash": "46434296EC2D34C785BFC6C66C7837E3A281C26B786A7A6F1A868F517A89B952",
"LatestAppHash": "5101436E7119A90D68DF47832DC1CD31EB56AB57BB59E4F99840A7D2485F2DC2",
"LatestBlockTime": "2020-06-29T06:07:59.2664643Z",
"LatestBlockSeenTime": "2020-06-29T06:20:28.3430934Z",
"LatestBlockDuration": 148743781400
}
查看验证者,等同于show v
curl -s "localhost:26758/validators"
查看共识状态
curl -s 127.0.0.1:26758/consensus
交易
send
burrow tx -c burrow000.toml formulate send -s 59F21BC28542DA871131E727F519D800B9A0756C -t EB06F3A9E57B9AAC15A2606B8054F68841757E43 -a 10 | burrow tx -c burrow000.toml commit
bond
bond不得超过Tendermint总和三分之一,既Tendermint总和为3000,抵押不得超过999,这取决于Tendermint防止拜占庭容错方式;
多节点请指定配置文件,-s
=抵押人 -a
抵押金额,bond
交易类型
burrow tx -c burrow000.toml formulate bond -s 0BE71FFBD115F540E788C820C176C4393BE6D1A6 -a 999 | burrow tx -c burrow000.toml commit
导出tx、blk信息
burrow explore使用时候请关闭节点(leveldb仅允许单进程访问)
默认导出全部
burrow explore -c burrow000.toml txs
可以指定RANG
burrow explore -c burrow000.toml txs 1:2
burrow explore -c burrow000.toml blocks
异常信息
PS F:\burrow\node> burrow tx -c burrow000.toml formulate bond -s 125A5683BA9CE5C2AA49B86608C69DC2D4285E3D -a 3000 | burrow tx -c burrow000.toml commit
failed to commit tx to mempool: rpc error: code = Unknown desc = error 501 returned by Tendermint in BroadcastTxSync ABCI log: CheckTx: Could not execute transaction: TxEnvelope{Signatures: 1, Tx: Tx{ChainID: NWC_B6FC16-6817B7; TxHash: 6923969D174E93C8EBB8E513997757E75F78BAB1882140236D4E9C3462B1F347; Payload: {"ChainID":"NWC_B6FC16-6817B7","Type":"BondTx","Payload":{"Input":{"Address":"125A5683BA9CE5C2AA49B86608C69DC2D4285E3D","Amount":50000,"Sequence":1}}}}}, error: Bucket.SetPower(): cannot change validator power of 125A5683BA9CE5C2AA49B86608C69DC2D4285E3D from 0 to 50000 because that would result in a flow greater than or equal to 1/3 of total power for the next commit: flow induced by change: 50000, current total flow: 0/999 (cumulative/max), remaining allowable flow: 999