aleo v2.0.2 搭建
搭建 v2.0
2023-09-14 09:16:03 时间
1. 依赖
- Rust v1.59+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# rustc --version
rustc 1.63.0 (4b91a6ea7 2022-08-08)
2. 源码编译 snarkOS
- 参考 snarkOS
# cat /etc/issue
Ubuntu 18.04.5 LTS \n \l
git clone https://github.com/AleoHQ/snarkOS.git --depth 1
cd snarkOS/
./build_ubuntu.sh
Installed package `snarkos v2.0.2 (/root/snarkOS)` (executable `snarkos`)
==================================================
Attention - Please ensure ports 4132 and 3032
are enabled on your local network.
Cloud Providers - Enable ports 4132 and 3032
in your network firewall
Home Users - Enable port forwarding or NAT rules
for 4132 and 3032 on your router.
==================================================
Rules updated
Rules updated (v6)
Rules updated
Rules updated (v6)
3. 生成 Aleo 矿工地址
# snarkos experimental new_account
Attention - Remember to store this account private key and view key.
Private Key
View Key
Address
4. 运行 Aleo 矿工
MINER_ADDRESS=aleo1地址 ./run-miner.sh >> /var/log/snarkOS/miner.log 2>&1 &
5. 查看Aleo 矿工状态
# cargo run --release -- miner stats aleo1地址
Compiling snarkos v2.0.2 (/root/snarkOS)
Finished release [optimized] target(s) in 20.82s
Running `target/release/snarkos miner stats aleo1undyu0cdf8h2wwp2q8pycck5u756cuhv7g8qzmgqtzrtkzyhmc9qyytp64`
2022-08-15T09:47:03.977297Z TRACE [Read-Only] Ledger successfully loaded at block 0
2022-08-15T09:47:03.979503Z INFO Prover successfully initialized
Mining Report (confirmed_blocks = 0, pending_blocks = 0, miner_address = aleo1undyu0cdf8h2wwp2q8pycck5u756cuhv7g8qzmgqtzrtkzyhmc9qyytp64)
# snarkos miner stats aleo1undyu0cdf8h2wwp2q8pycck5u756cuhv7g8qzmgqtzrtkzyhmc9qyytp64
2022-08-15T09:49:30.457931Z TRACE [Read-Only] Ledger successfully loaded at block 0
2022-08-15T09:49:30.460051Z INFO Prover successfully initialized
Mining Report (confirmed_blocks = 0, pending_blocks = 0, miner_address = aleo1undyu0cdf8h2wwp2q8pycck5u756cuhv7g8qzmgqtzrtkzyhmc9qyytp64)
参考
相关文章
- SpringMVC 框架介绍以及环境搭建
- 一步步学会Thrift服务搭建和调用
- 使用vue搭建应用二加入element
- 1. 搭建NDK集成开发环境
- Qt系列文章004-Qt+VS开发环境搭建
- kubeadm加载k8s镜像实现集群搭建
- 基于nexus3搭建docker镜像仓库(registry mirror)
- 【原创】C#搭建足球赛事资料库与预测平台(2) 数据库与XCode组件
- 微信小程序开发系列一:微信小程序的申请和开发环境的搭建
- 熬夜再战Android从青铜到王者-UI组件快速搭建App界面【建议收藏】
- 使用sealos搭建kubernetes1.19.6高可用集群并利用helm安装rancher高可用集群
- CentOS 7 搭建mqtt服务——筑梦之路