Expand description
Light CPU miner for testnet usage.
This module provides a minimal, non-optimized SHA256 miner suitable for mining webcash on the testnet (low constant difficulty). For production mining, use a dedicated GPU miner.
§Usage
use webylib::{Wallet, NetworkMode};
use webylib::miner;
let wallet = Wallet::open_with_network("testnet.db", NetworkMode::Testnet).await?;
let result = miner::mine(&wallet).await?;
println!("Mined {} webcash!", result.amount);Structs§
- Mine
Result - Result of a successful mining operation.
Functions§
- mine
- Mine webcash using the wallet’s server client and HD derivation.