Test - Work in Progress / don't mind me...

:pick: Tutorials and Benchmarks about CPU mining Zettel
Post Reply

Kayla
Posts: 10
Joined: Mon Jun 11, 2018 1:18 pm

Re: Test - Work in Progress / don't mind me...

Post by Kayla » Fri Jun 15, 2018 8:28 am


0.0 - Windows

!!!!!!WARNING!!!!!!
Do NOT use *Receive Address* and *miningprivkey* shown in this guide, everyone who reads this guide will have access to coins you mine!!


Wallet GUI Mining (This guide is for Windows but the basic applies to Linux and Mac as well)
Retrieve wallet binary for your OS from here:

Direct Download Link:
https://github.com/zettel-kasten/zettel ... -win32.zip

(Linux, Mac, Windows and source)
https://github.com/zettel-kasten/zettelkasten/releases

Extract it to folder of your choice.
For example: C:\ZettelKasten\

Launch zettelkasten-qt.exe
Click on Mining tab
Move the slider for Number of threads to use and click Start mining

Image

Yes, it's that simple. ;)

-------------------------------------

However, simplicity now may cause issues later for safe keeping of your coins and the reason is: Every mined blocks will come in with different address. That means you'll need either make a back up of wallet.dat file after every block found, or export and keep copy of privkey for every block.

So, let's take a few steps further to send all mined block to same address. With this method all you need to keep is a copy of that one privkey.

If you already start mining, just click Stop mining
Launch Notepad for note keeping

In Zettel Wallet, Click Receive tab
Right mouse click on your Address and select Copy Address

Image

Paste it in Notepad

Back to Zettel Wallet, select Tools | Debug Console

Image

Type: dumpprivkey <space> and paste in the address and hit ENTER

Image

Copy output line and paste it in Notepad and save.
This is your privkey to unlock your coins. Keep it safe!!!

Image

Start a new Notepad and paste below in:

Code: Select all

rpcuser=somesecretusername
rpcpassword=somesecretpass
daemon=1
server=1
gen=0
genproclimit=-1
##Receive Address: ZcgCXmCLxET6rLx8JmUDEpbRHntQFvuovh
miningprivkey=832zagbuLUoRQUTgzecPSZd12UCwNqua1tKKXsiPsjw2K2ipoKE
Replace rpcuser, rpcpassword, Receive Address and miningprivkey to yours

Select File | Save As

In File Name Type in:

Code: Select all

%appdata%\zettelkasten\zettelkasten.conf
In File Type select All Files (*.*)
Click Save and exit.

Image

Exit the Wallet and relaunch it.
In Overview and Mining tab, you should see message All mined coins will go to ZcgCXmCLxET6rLx8JmUDEpbRHntQFvuovh

Image

Now you're all set ... Happy Mining and Good Luck!

Hint: If you have more than one PC for mining, just copy zettelkasten.conf to same location on that machine


0.0a - Window WSL


0.0b - Linux LiveUSB

Kayla
Posts: 10
Joined: Mon Jun 11, 2018 1:18 pm

Re: Test - Work in Progress / don't mind me...

Post by Kayla » Fri Jun 15, 2018 8:28 am


1.0 - Linux


1.0a - Ubuntu 16.04 compilation

Tested with fresh Ubuntu 16.04

Preparing build environment:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential libboost-all-dev libdb++-dev libminiupnpc-dev libssl-dev git
Clone the source code:

Code: Select all

cd ~
git clone https://github.com/zettel-kasten/zettelkasten.git
cd zettelkasten/src
chmod +x leveldb/build_detect_platform
Line 242 of rpcrawtransaction.cpp is not compatible with boost 1.58, so we need to change it a tad:
From: const CScriptID& hash = boost::get<const CScriptID&>(address);
To: const CScriptID& hash = boost::get<CScriptID>(address);

Code: Select all

sed -i '242s/get<const CScriptID&>(address)/get<CScriptID>(address)/' rpcrawtransaction.cpp
Compiling:
If you have multi CPU cores you can add -j <n> to speed up the build.
To find how many cores on CPU, use cmd nproc
Example of build with 8 cores:

Code: Select all

make -j 8 -f makefile.unix
otherwise

Code: Select all

make -f makefile.unix
When build is complete, you'll find zettelkastend in ~/zettelkasten/src (per this guide).

Happy mining! ;)


1.0b - Ubuntu 18.04 compilation

Tested with fresh Ubuntu 18.04

Preparing build environment:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential libboost-all-dev libdb++-dev libminiupnpc-dev libssl1.0-dev git
Clone the source code:

Code: Select all

cd ~
git clone https://github.com/zettel-kasten/zettelkasten.git
cd zettelkasten/src
chmod +x leveldb/build_detect_platform
Compiling:
If you have multi CPU cores you can add -j <n> to speed up the build.
To find how many cores on CPU, use cmd nproc
Example of build with 8 cores:

Code: Select all

make -j 8 -f makefile.unix
otherwise

Code: Select all

make -f makefile.unix
When build is complete, you'll find zettelkastend in ~/zettelkasten/src (per this guide).

Happy mining! ;)

Kayla
Posts: 10
Joined: Mon Jun 11, 2018 1:18 pm

Re: Test - Work in Progress / don't mind me...

Post by Kayla » Fri Jun 15, 2018 8:28 am



Kayla
Posts: 10
Joined: Mon Jun 11, 2018 1:18 pm

Re: Test - Work in Progress / don't mind me...

Post by Kayla » Fri Jun 15, 2018 8:29 am


Kayla
Posts: 10
Joined: Mon Jun 11, 2018 1:18 pm

Re: Test - Work in Progress / don't mind me...

Post by Kayla » Fri Jun 15, 2018 8:29 am

reserved

Kayla
Posts: 10
Joined: Mon Jun 11, 2018 1:18 pm

Re: Test - Work in Progress / don't mind me...

Post by Kayla » Fri Jun 15, 2018 8:29 am

reserved

Kayla
Posts: 10
Joined: Mon Jun 11, 2018 1:18 pm

Re: Test - Work in Progress / don't mind me...

Post by Kayla » Fri Jun 15, 2018 8:29 am

reserved

Kayla
Posts: 10
Joined: Mon Jun 11, 2018 1:18 pm

Re: Test - Work in Progress / don't mind me...

Post by Kayla » Fri Jun 15, 2018 8:29 am

reserved

User avatar
TestingCrypto
Posts: 6
Joined: Fri Aug 03, 2018 11:37 am

Re: Test - Work in Progress / don't mind me...

Post by TestingCrypto » Fri Aug 03, 2018 2:27 pm

Thanks for the very well documented build process :idea:

// a fresh pull solved my boost error from the already compiled code
#1 BurgerHash BYEskb2FyvjfXWd8eetVkQdjPYSCn3GbYr #1 Zettelkasten ZhECwHLgaGQPov8gqP2cLHg8J1pUBdBZMP
#2 BurgerHash BrqXKDyg7BMYGLWk7PzmuUwe6ohHpeba4U #2 Zettelkasten .....

Post Reply