aleo v2.0.2 搭建

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

# 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)

参考

  1. Aleo-节点教程
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值