BitShares Forum

Main => General Discussion => Topic started by: smith7800 on December 02, 2014, 01:29:27 am

Title: Sparkle Mining Guide (Linux)?
Post by: smith7800 on December 02, 2014, 01:29:27 am
Can anybody help me get started mining on ubuntu?  i was able to compile the binary, but not sure how to get the wallet to start mining or get a list of rpc commands.  Is there documentation somewhere?
Title: Re: Sparkle Mining Guide (Linux)?
Post by: Troglodactyl on December 02, 2014, 02:23:46 am
Once you've compiled it:

cd programs/client
./sparkle_client
wallet_create name password
wallet_unlock 99999999 password
wallet_account_create name
wallet_enable_mining name true

"help" gives you a list of commands, getinfo gives you info including current difficulty and time since last block, wallet_account_balance shows how much you've mined, and blockchain_list_blocks lists the recent blocks.

If all the recent blocks are signed by the same key, you're very likely on your own private fork.  To resolve that, "quit", delete "~/.Sparkle-Test65/chain", and restart the client and start mining again.
Title: Re: Sparkle Mining Guide (Linux)?
Post by: smith7800 on December 02, 2014, 02:50:57 am
Excellent info.  Thanks.  Is there a command to display mining speed?
Title: Re: Sparkle Mining Guide (Linux)?
Post by: Troglodactyl on December 02, 2014, 03:10:38 am
No, I don't believe there is yet.  It's still early alpha, they're just honoring mined blocks to motivate the creation of a legitimate test network.

Good thing too, with the initial difficulty adjustment algorithm causing all this forking and near halting.