EOS MainNet 主网

EOS MainNet 基于标签:mainnet-1.5.0
网络监视器和投票命令预处理工具: EOSnetworkMonitor.io

1.5.0中的新nodeos配置参数: chain-threads = 8

自动安装程序脚本

进行中…

手动安装

安装EOS

mkdir /home/eos-sources  
cd /home/eos-sources  

git clone https://github.com/EOS-Mainnet/eos.git --recursive    
cd eos  

git checkout mainnet-1.5.0 
git submodule update --init --recursive   

./eosio_build.sh -s "EOS"   

更新

mkdir /home/eos-sources  
cd /home/eos-sources/eos  

git checkout mainnet-1.5.0
git submodule update --init --recursive   

./eosio_build.sh -s "EOS"  

配置节点

  • 为您的节点创建data-dir文件夹:
mkdir /opt/EOSmainNet 
  • 克隆此repo中的所有文件:
cd /opt/EOSmainNet 
git clone https://github.com/CryptoLions/EOS-MainNet.git ./ 
  • 添加执行权限
chmod -R 777 ./*.sh 
chmod -R 777 ./Wallet/*.sh 
  • 如果您使用不同的data-dir目录 ->需要编辑文件cleos.shstart.shstop.sh,Wallet/start_wallet.sh,Wallet/stop_wallet.sh中的所有路径:

    • config.ini中编辑下一个参数并取消注释:

    • 服务器地址:p2p-server-address = YOUR_NODE_IP_ADDRESS:9876

    • 您的名字:producer-name = YOUR_BP_NAME

    • 创建的生产者密钥对:private-key = YOUR_BLOCK_SIGN_PUB_KEY = KEY:YOUR_BLOCK_SIGN_PRIV_KEY

  • 用监控站点上新生成的p2p-peer-address list替换: https : //eosnodes.privex.io/?config = 1

  • 在防火墙/路由器上打开http和p2p端口

  • 连接您的节点,运行

 ./start.sh 
  • 启动钱包,运行
 ./Wallet/start_wallet.sh 
  • 导入你的密钥
./cleos.sh wallet import <YOUR_PRIVKEY> 

首先应该使用–delete-all-blocks和–genesis-json

 ./start.sh --delete-all-blocks --genesis-json genesis.json 

检查您是否可以使用链接http://you_server:your_http_port/v1/chain/get_info访问您的节点

添加bp.json以及有关您的节点的信息:

https://github.com/eosrio/bp-info-standard

其他工具/示例

  • 在scripts文件夹中,您可以找到如何注册为producer,stake,vote,claimrewards等的示例
  • 您可以使用testnet monitor准备投票命令: https://t.me/jungletestnet/19081
  • Cleos命令:

发送EOS

 ./cleos.sh transfer <your account> <receiver account> "1.0000 EOS" "test memo text" 

获得平衡

./cleos.sh get currency balance eosio.token <account name> 

创建帐号

 ./cleos.sh system newaccount --stake-net "1.0000 EOS" --stake-cpu "1.0000 EOS" --buy-ram-kbytes 8 <your accountr> <new account> <pkey1> <pkey2> 

列出注册的生产者(-l)

 ./cleos.sh get table eosio eosio producers -l 100 

列出你的上一个动作(使用-h获取帮助,现在不行)

 ./cleos.sh get actions <account name> 

列出赌注/委托

 ./cleos.sh system listbw <account> 

作者: CryptoLions.io

如果你希望接下来继续深入高效地学习EOS区块链开发,推荐看看这个课程:EOS智能合约与DApp开发入门,相信你会有很多收获。

猜你喜欢

转载自blog.csdn.net/mongo_node/article/details/85066297