curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# rustc --version
rustc 1.63.0 (4b91a6ea7 2022-08-08)
# 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)
# snarkos experimental new_account
Attention - Remember to store this account private key and view key.
Private Key
View Key
Address
MINER_ADDRESS=aleo1地址 ./run-miner.sh >> /var/log/snarkOS/miner.log 2>&1 &
# 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)