-
Notifications
You must be signed in to change notification settings - Fork 28
Building the wallet
Instructions for building the wallet in Windows will be written below.
If in anyway kotod is forcefully terminated, the wallet data may be corrupted. (The same applies to other encrypted currencies!)
Please do CTRL-C
or koto-cli stop
to terminate kotod safely. Make sure to wait until kotod's process ends before proceeding with any commands.
If wallet.dat is broken/corrupted, you may do kotod -salvagewallet
to (hopefully) recover you wallet. (If it fails, please do not give up on recovering it!)
You can build according to the instructions found here: https://github.com/zcash/zcash/wiki/1.0-User-Guide The summary of the page is as follows.
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python python-zmq zlib1g-dev wget bsdmainutils automake curl
git clone https://github.com/koto-dev/koto.git
cd koto
./zcutil/fetch-params.sh
./zcutil/build.sh --disable-rust -j$(nproc)
Please remove -j$(nproc)
if you can not build due to insufficient memory.
mkdir -p ~/.koto
echo "rpcuser = username" >> ~/.koto/koto.conf
echo "rpcpassword = password" >> ~/.koto/koto.conf
Please replace username
and password
with your own credentials.
NOTE: Because of DNSSeed, addnode is not always necessary, but if you are not connected to any connections after 5 minutes, please try adding this node to koto.conf with the following command.
echo "addnode = 160.16.79.210" >> ~ /.koto/koto.conf
If everything is built as said, you should be able to start the wallet!
$ ./koto/src/kotod
To run it in the background (without the node metrics screen that is normally displayed) use
./koto/src/kotod --daemon
NOTE: The Koto blockchain will start downloading when you first run it! Be patient and wait till it finishes downloading then create addresses!
If you like using GUI instead of the command line, you can build a GUI wallet! (KotoSwingWalletUI.jar
) You can find build instructions in the description of https://github.com/koto-dev/zcash-swing-wallet-ui .
sudo apt - get install git default - jdk ant (Ubuntu runs here)
sudo yum install java - 1.8.0 - openjdk git ant (RedHat / CentOS / Fedora etc run here)
git clone https://github.com /koto-dev/zcash-swing-wallet-ui.git
cd zcash-swing-wallet-ui
ant-buildfile ./src/build/build.xml
chmod u + x ./build/jars/KotoSwingWalletUI.jar
You should be able to execute KotoSwingWalletUI.jar
if built correctly.
KotoSwingWalletUI.jar
, kotod
, koto-cli
should be in the same directory.
Running the GUI
java - jar Full path to KotoSwingWalletUI.jar
·/koto/src/koto-cli setgenerate true
· gen = 1 in koto.conf
By default settings, Koto will be added to a new address each time they are mined. You can specify the recipient's address with -mineraddress
An example of specifying the number of threads and performing mining with kotod alone is as follows:
./koto/src/kotod -genproclimit=(number of threads) -gen -mineraddress=(your address goes here) -minetolocalwallet
If you want a separate CPUMiner, you can use this: https://github.com/koto-dev/cpuminer-yescrypt Build and use it to mine. Example of running a miner program:
./minerd --algo=yescrypt --userpass=username:password -o 127.0.0.1:8432