CPU miner for Koto
Clone or download
Pull request Compare This branch is 8 commits ahead of koto-dev:master.
Latest commit 07527e3 Oct 28, 2018
Permalink
Failed to load latest commit information.
compat Build on Windows using mingw32. Nov 26, 2010
depend libcurl 7.40.0 Jan 26, 2018
deps deleted Jan 26, 2018
.gitignore added win files Jan 27, 2018
AUTHORS Version 2.0 Jan 16, 2012
COPYING Convert over to autotools. Release version 0.1. Nov 25, 2010
ChangeLog Convert over to autotools. Release version 0.1. Nov 25, 2010
Dockerfile fix aclocal missing dependency Feb 11, 2018
LICENSE Convert over to autotools. Release version 0.1. Nov 25, 2010
Makefile.am Add yespower algorithm Jul 17, 2018
NEWS Version 2.4 May 20, 2014
README fix misprinting Jan 27, 2018
README.md Replace koto.cash to ko-to.org Jun 7, 2018
README.txt Add yespower algorithm Jul 17, 2018
autogen.sh Convert over to autotools. Release version 0.1. Nov 25, 2010
compat.h Define sleep() as a macro on Windows Oct 4, 2013
configure.ac Bump version Sep 14, 2018
cpu-miner.c Fix for sapling Sep 22, 2018
elist.h Do not use the non-standard typeof operator May 16, 2014
example-cfg.json Version 2.0 Jan 16, 2012
insecure_memzero.h Add yespower algorithm Jul 17, 2018
miner.h Treat block version 5 Sep 14, 2018
minerd.1 Add support for scrypt(N, 1, 1) May 25, 2014
nomacro.pl Add support for building on Mac OS X Feb 28, 2012
scrypt-arm.S Add support for scrypt(N, 1, 1) May 25, 2014
scrypt-x64.S Add support for scrypt(N, 1, 1) May 25, 2014
scrypt-x86.S Add support for scrypt(N, 1, 1) May 25, 2014
scrypt.c Add support for scrypt(N, 1, 1) May 25, 2014
sha2-arm.S Add a configure option to disable assembly code May 16, 2014
sha2-x64.S Add a configure option to disable assembly code May 16, 2014
sha2-x86.S Add a configure option to disable assembly code May 16, 2014
sha2.c Add a configure option to disable assembly code May 16, 2014
sha256.c Add yespower algorithm Jul 17, 2018
sha256.h Add yespower algorithm Jul 17, 2018
sha256_Y.c Add yespower algorithm Jul 17, 2018
sha256_Y.h yescrypt support init Sep 12, 2014
sysendian.h yescrypt support init Sep 12, 2014
util.c Fix for sapling Sep 22, 2018
winbuild-cross.sh Add required dll for win32 Oct 28, 2018
yescrypt-best.c revive SSE version Jan 3, 2018
yescrypt-neon.c revive SSE version Jan 3, 2018
yescrypt-opt.c yescrypt support init Sep 12, 2014
yescrypt-platform.c Support Windows x86/x64 Dec 15, 2017
yescrypt-sse.c revive SSE version Jan 3, 2018
yescrypt.c Treat block version 5 Sep 14, 2018
yescrypt.h yescrypt support init Sep 12, 2014
yescryptcommon.c yescrypt support init Sep 12, 2014
yespower-opt.c Add yespower algorithm Jul 17, 2018
yespower-platform.c Add yespower algorithm Jul 17, 2018
yespower-ref.c Add yespower algorithm Jul 17, 2018
yespower.c Treat block version 5 Sep 14, 2018
yespower.h Add yespower algorithm Jul 17, 2018

README.md

This is a multi-threaded CPU miner for Koto (KOTO) using the Yescrypt Algorithm

(fork of Jeff Garzik's reference cpuminer https://github.com/noncepool/cpuminer-yescrypt)

License: GPLv2. See COPYING for details.

Git tree: https://github.com/KotoDevelopers/cpuminer-yescrypt/

Windows Binary:

Dependencies:

Install Build Dependencies on Debian, Ubuntu and other APT-based distros:

    sudo apt-get install build-essential libcurl4-openssl-dev autotools-dev automake

Install Build Dependencies on Fedora, RHEL, CentOS and other yum-based distros:

    sudo yum install gcc make curl-devel automake

Install Build Dependencies on OpenSUSE and other ZYpp-based distros:

    sudo zypper in gcc make libcurl-devel automake

Basic *nix build instructions:

./autogen.sh    # Only needed if building from git repo.
./nomacro.pl    # Only needed if building on Mac OS X or with Clang.
./configure CFLAGS="-O3" # For ARM-based devices, please, use
                         # CFLAGS="-O3 -funroll-loops -fomit-frame-pointer"
                         # Alternatively, check out the _arm_ branch of this
                         # repository, and build the project from there.
make

Notes for AIX users:

* To build a 64-bit binary, export OBJECT_MODE=64
* GNU-style long options are not supported, but are accessible
  via configuration file

Windows x64 (64-bit) build instructions on Ubuntu 16.04LTS / 17.10:

	sudo apt-get install gcc-mingw-w64
        cd depend
        sh depend.sh
        cd ..
        ./autogen.sh
        LDFLAGS="-L./depend/curl-7.40.0-devel-mingw64/lib64 -static" LIBCURL="-lcurldll" CFLAGS="-O3 -msse4.1 -funroll-loops -fomit-frame-pointer" ./configure --host=x86_64-w64-mingw32 --with-libcurl=depend/curl-7.40.0-devel-mingw64
        make


        * Static version

        cd deps
        ./build_win_x64_deps.sh
        cd ..
        autoreconf -fi -I./deps/x86_64-w64-mingw32/share/aclocal
        LDFLAGS="-L./deps/x86_64-w64-mingw32/lib -static" CFLAGS="-O3 -msse4.1 -funroll-loops -fomit-frame-pointer -I./deps/x86_64-w64-mingw32/include -std=c99 -DWIN32 -DCURL_STATICLIB -DPTW32_STATIC_LIB" ./configure --host=x86_64-w64-mingw32 --with-libcurl=deps/x86_64-w64-mingw32
        make

Windows x86 (32-bit) build instructions on Ubuntu 16.04LTS / 17.10:

	sudo apt-get install gcc-mingw-w64
        cd depend
        sh depend.sh
        cd ..
        ./autogen.sh
        LDFLAGS="-L./depend/curl-7.40.0-devel-mingw32/lib -static" LIBCURL="-lcurldll" CFLAGS="-O3 -msse4.1 -funroll-loops -fomit-frame-pointer" ./configure --host=i686-w64-mingw32 --with-libcurl=depend/curl-7.40.0-devel-mingw32
        make


        * Static version

        cd deps
        ./build_win_x86_deps.sh
        cd ..
        autoreconf -fi -I./deps/i686-w64-mingw32/share/aclocal
        LDFLAGS="-L./deps/i686-w64-mingw32/lib -static" CFLAGS="-O3 -msse4.1 -funroll-loops -fomit-frame-pointer -I./deps/i686-w64-mingw32/include -std=c99 -DWIN32 -DCURL_STATICLIB -DPTW32_STATIC_LIB" ./configure --host=i686-w64-mingw32 --with-libcurl=deps/i686-w64-mingw32
        make

Architecture-specific notes:

ARM:	No runtime CPU detection. The miner can take advantage
	of some instructions specific to ARMv5E and later processors,
	but the decision whether to use them is made at compile time,
	based on compiler-defined macros.

	To use NEON instructions, add "-mfpu=neon" to CFLAGS.

x86:	The miner checks for SSE2 instructions support at runtime,
	and uses them if they are available.

x86-64:	(Note: SSE works better than AVX and AVX2 for Yescrypt)
	The miner can take advantage of AVX, AVX2 and XOP instructions,
	but only if both the CPU and the operating system support them.

	    * Linux supports AVX starting from kernel version 2.6.30.
	    * FreeBSD supports AVX starting with 9.1-RELEASE.
	    * Mac OS X added AVX support in the 10.6.8 update.
	    * Windows supports AVX starting from Windows 7 SP1 and
	      Windows Server 2008 R2 SP1.

	The configure script outputs a warning if the assembler
	doesn't support some instruction sets. In that case, the miner
	can still be built, but unavailable optimizations are left off.

Usage instructions: Run minerd --help to see options.

To Connect to pool using your Koto Wallet Address:

    ./minerd -a yescrypt -o stratum+tcp://Koto.pool.address:port -u Your_Koto_Address -p x

Note: Do not mine to online wallet addresses, including exchanges, as you may experience loss of coins due to how newly mined coins are confirmed.

Connecting through a proxy: Use the --proxy option.

To use a SOCKS proxy, add a socks4:// or socks5:// prefix to the proxy host.

Protocols socks4a and socks5h, allowing remote name resolving, are also available since libcurl 7.18.0.

If no protocol is specified, the proxy is assumed to be a HTTP proxy.

When the --proxy option is not used, the program honors the http_proxy and all_proxy environment variables.

Also many issues and FAQs are covered in these forum threads dedicated to this program: