INFO[11-01|10:08:10]HPB:Insertednewblocknumber=656094hash=67a92f…8b7b1aINFO[11-01|10:08:10]HPB:Importednewchainsegmentblocks=1txs=0mgas=0.000elapsed=7.058msmgasps=0.000number=656094hash=67a92f…8b7b1a######### peers length is: 2readescapesequence
root@dell-PowerEdge-R730:/home# cd go-hpb/root@dell-PowerEdge-R730:/home/go-hpb# make allbuild/env.shgorunbuild/ci.goinstall./cmd/ghpb>>>/usr/lib/go-1.9/bin/goinstall-ldflags-Xmain.gitCommit=04fa6c874b447f0de0a4296b9e573119e1997fcc-v./cmd/ghpbgithub.com/hpb-project/go-hpb/vendor/github.com/prometheus/procfs/internal/utilgithub.com/hpb-project/go-hpb/common/bitutil……Donebuilding.Run"/home/go-hpb/build/bin/promfile"tolaunchpromfile.
root@hpb-PowerEdge-R730xd:/home/ghpb-bin2# ./promfile+-----------------------------------------------------------+|Welcometoprometh,yourHPBprivatenetworkmanager||||ThistoolletsyoucreateanewHPBnetworkdownto||thegenesisblock,bootnodes,minersandethstatsservers||withoutthehasslethatitwouldnormallyentail.||||PromethusesSSHtodialintoremoteservers,andbuilds||itsnetworkcomponentsoutofDockercontainersusingthe||docker-composetoolset.|+-----------------------------------------------------------+Pleasespecifyanetworknametoadminister(nospaces,please)>random`(给测试链命名,可随意命名,如random)Sweet, you can set this via --network=random next time!INFO [09-19|08:36:16] HPB : Administering HPB network name=randomWARN [09-19|08:36:16] HPB : No previous configurations found path=/root/.prometh/randomWhat would you like to do? (default = stats) 1. Configure new genesis 2. Manage existing genesis> 1`(选择1,生成新的创世文件)WelcometoHPBconsensusenginefilemakerHowmanysecondsshouldblockstake?(default=15)>5`(设置生成区块的间隔,如5)How many blocks should voting epoch be ? (default = 30000)> 100`(设置投票周期,如100)Whichaccountsareallowedtoseal?(initialisemineraddresses)>0x04cbf60fdcc485a76b0b8a389da7bd87da180edd(设置初始挖矿地址,示例为新建的第一个账户)>0x`(可继续添加挖矿地址,按回车可进入下一步)Which accounts should be pre-funded? (advisable at least one)> 0x04cbf60fdcc485a76b0b8a389da7bd87da180edd(设置初始预存钱的地址,示例为新建的第一个账户)> 0x`(可继续添加预存钱地址,按回车可进入下一步)Pleaseinputtheinitializationhardwarerandom>0x`(按回车直接进入下一步) Specify your chain/network ID if you want an explicit one (default = random)> 66300`(设置网络号,可随意设置,后续启动命令中需用到该网络号)Anythingfuntoembedintothegenesisblock?(max32bytes)>hhh`(可输入任意字符串,以示有趣)What would you like to do? (default = stats) 1. Configure new genesis 2. Manage existing genesis> 2`(选择2,导出刚设置的创世文件)1.Exportgenesisconfiguration>1`(选择1,将会打印出json文件,需在最后输入名称“gensis.json”)Which file to save the genesis into? (default = random.json){ "config": { "chainId": 66300, "prometheus": { "period": 5, "epoch": 100 } }, "nonce": "0x0", "timestamp": "0x5ba242c8", "extraData": "0x686868000000000000000000000000000000000000000000000000000000000004cbf60fdcc485a76b0b8a389da7bd87da180edd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "gasLimit": "0x5f5e100", "difficulty": "0x1", "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000", "alloc": { "04cbf60fdcc485a76b0b8a389da7bd87da180edd": { "balance": "0x8" } }, "number": "0x0", "gasUsed": "0x0", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "hardwareRandom": "0x0000000000000000000000000000000000000000000000000000000000000000"}> gensis.json`(在此处输入名称“gensis.json”,并回车)INFO[09-19|08:59:36]HPB:ExportedexistinggenesisblockWhatwouldyouliketodo?(default=stats)1.Configurenewgenesis2.Manageexistinggenesis>
root@hpb-PowerEdge-R730xd:/home/ghpb-bin2# cd /home/go-hpb/root@hpb-PowerEdge-R730xd:/home/go-hpb# make allbuild/env.shgorunbuild/ci.goinstall./cmd/ghpb>>>/usr/lib/go-1.9/bin/goinstall-ldflags-Xmain.gitCommit=89d88c8e23f7761a76dd8eebe9b08fd3750a04b6-v./cmd/ghpbgithub.com/hpb-project/go-hpb/vendor/golang.org/x/text/encoding/internal/identifier...Donebuilding.Run"/home/go-hpb/build/bin/promfile"tolaunchpromfile.cp"/home/go-hpb/network/iperf3/iperf3""/home/go-hpb/build/bin/iperf3"cp"/home/go-hpb/network/p2p/binding.json""/home/go-hpb/build/bin/binding.json"cp"/home/go-hpb/network/p2p/config.json""/home/go-hpb/build/bin/config.json"