go-filecoin staging-devnet-0.5.2 安装

go-filecoin staging-devnet-0.5.2 安装

  • 1,系统环境
  • 2,下载二进制包
  • 3,删除之前安装环境
  • 4,安装staging-devnet-0.5.2
  • 5,运行filecoin

1,系统环境

# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
# runlevel
N 3

2,下载二进制包

  • filecoin-staging-devnet-0.5.2-Linux.tar.gz 下载

3,删除之前安装环境

  • Github Stop mining,remove all data
  • 删除~/.filecoin
# pwd
/root
# rm -rf .filecoi*
  • 删除
# cd /var/tmp/filecoin-proof-parameters/
# du -sh
3.8G	.

# rm -rf * #清空filecoin-proof-parameters/目录内容

4,安装staging-devnet-0.5.2

  • Installing from binary
  • staging-devnet-0.5.2 下载
  • 产生存储证明需要的数据
# tar -zxvf filecoin-staging-devnet-0.5.2-Linux.tar.gz
filecoin/
filecoin/paramcache
filecoin/go-filecoin
# cd filecoin/
# ./paramcache
# du -sh /var/tmp/filecoin-proof-parameters
2.8G	/var/tmp/filecoin-proof-parameters

5,运行filecoin

  • Start running Filecoin
  • 初始化失败
# go-filecoin init --devnet-user --genesisfile=https://genesis.user.kittyhawk.wtf/genesis.car
initializing filecoin node at /root/.filecoin
11:01:22.729  INFO     badger: All 0 tables opened in 0s
 logger.go:46
11:01:22.738  INFO     badger: All 0 tables opened in 0s
 logger.go:46
11:01:22.746  INFO     badger: All 0 tables opened in 0s
 logger.go:46
11:01:22.753  INFO     badger: All 0 tables opened in 0s
 logger.go:46
Error: Could not Init Node: unmarshal error: stream contains key "nonce", but there's no such field in structs of type types.Block
  • go-filecoin version (0.5.2) Error: Could not Init Node
  • Staging (for Infra and pre-release testing)
  • 连接到--devnet-staging初始化成功
  • go-filecoin init --devnet-staging --genesisfile=https://genesis.staging.kittyhawk.wtf/genesis.car
# go-filecoin init --devnet-staging --genesisfile=https://genesis.staging.kittyhawk.wtf/genesis.car
initializing filecoin node at /root/.filecoin
11:09:33.466  INFO     badger: All 0 tables opened in 0s
 logger.go:46
11:09:33.475  INFO     badger: All 0 tables opened in 0s
 logger.go:46
11:09:33.483  INFO     badger: All 0 tables opened in 0s
 logger.go:46
11:09:33.489  INFO     badger: All 0 tables opened in 0s
 logger.go:46
  • 运行守护进程失败
# go-filecoin daemon
Error: could not get genesis state: failed to load node for bafy2bzacebuzh3fjfbfw764z7s67vcmkyajweottkzrr35fmzpayucgsltc7y: malformed stream: invalid appearance of array open token; expected start of map

你可能感兴趣的:(IPFS,go-filecoin)