Libra链节点安装

Libra

Libra.jpg

这里是Libra链节点的安装教程,安装环境是Ubuntu 16.04.6 LTS。

节点安装

官方文档https://developers.libra.org/docs/my-first-transaction

clone源码

git clone https://github.com/libra/libra.git

安装Libra Core

cd libra
./scripts/dev_setup.sh

提示需要安装一些依赖

 build Libra Core. This includes:
 	* Rust (and the necessary components, e.g. rust-fmt, clippy)
 	* CMake, protobuf, go (for building protobuf)
 
 If you'd prefer to install these dependencies yourself, please exit this script
 now with Ctrl-C.
 
 Proceed with installing necessary dependencies? (y/N) > y

键入y会自动安装。

……
Finished installing all dependencies.

You should now be able to build the project by running:
	source /root/.cargo/env
	cargo build

构建Libra cli客户端并连接到测试网络

./scripts/cli/start_cli_testnet.sh
Building and running client in debug mode.
    Updating crates.io index
    Updating git repository `https://github.com/pingcap/rust-rocksdb.git`
    Updating git repository `https://github.com/alexcrichton/bzip2-rs.git`
       Fetch [==============>                                        ]  27.65%

等待Updating Downloading Building结束后进入cli客户端。

   ……
   Compiling client v0.1.0 (/data/libra/client)
    Finished dev [unoptimized + debuginfo] target(s) in 17m 02s
     Running `target/debug/client --host ac.testnet.libra.org --port 8000 -s ./scripts/cli/trusted_peers.config.toml`
Connected to validator at: ac.testnet.libra.org:8000
usage: <command> <args>

Use the following commands:

account | a 
	Account operations
query | q 
	Query operations
transfer | transferb | t | tb 
	<sender_account_address>|<sender_account_ref_id> <receiver_account_address>|<receiver_account_ref_id> <number_of_coins> [gas_unit_price_in_micro_libras (default=0)] [max_gas_amount_in_micro_libras (default 10000)] Suffix 'b' is for blocking. 
	Transfer coins (in libra) from account to another.
help | h 
	Prints this help
quit | q! 
	Exit this client


Please, input commands: 

libra% 

cli客户端

先写这么多,等客户端研究明白了再写。

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值