AMD Ryzen 1700 ASUS B350-PLUS 4.13.0-45-generic
sudo apt-get install \
lm-sensors psensor build-essential bison flex
$ sudo rm -rf / |
# Dependancies \ | |
sudo apt-get install -y \ | |
build-essential `# For building the driver` \ | |
gcc-multilib `# For providing 32-bit support` \ | |
dkms `# For providing dkms support` \ | |
xorg xorg-dev `# On a workstation with GUI` && \ | |
\ | |
# Create Blacklist for Nouveau Driver \ | |
sudo bash -c "> /etc/modprobe.d/blacklist-nouveau.conf" ; `# 파일비우기` \ | |
sudo touch /etc/modprobe.d/blacklist-nouveau.conf && `# 파일만들기` \ |
# nvidia-396 \ | |
sudo add-apt-repository ppa:graphics-drivers/ppa && \ | |
sudo apt-get update && \ | |
sudo apt-get install nvidia-396 && \ | |
\ | |
# cuda-9.2 \ | |
cd && \ | |
wget https://developer.nvidia.com/compute/cuda/9.2/Prod/local_installers/cuda_9.2.88_396.26_linux && \ | |
wget https://developer.nvidia.com/compute/cuda/9.2/Prod/patches/1/cuda_9.2.88.1_linux && \ | |
chmod +x cuda_9.2.88_396.26_linux && \ |
ssh-keygen -t rsa -b 4096 -C "[email protected]" && \ | |
eval "$(ssh-agent -s)" && \ | |
ssh-add ~/.ssh/id_rsa && \ | |
echo "COPY to github ssh" ;\ | |
echo "*******************" ; \ | |
cat ~/.ssh/id_rsa.pub ; \ | |
echo "*******************" |
#include "miner.h" | |
#include "yespower.h" | |
#include "yespower-opt.c" | |
static const yespower_params_t yespower_BITZENY = {YESPOWER_0_5, 2048, 8, "Client Key", 10}; // ZNY | |
static const yespower_params_t yespower_YENTEN = {YESPOWER_0_5, 4096, 16, "Client Key", 10}; // YTN | |
static const yespower_params_t yespower_WAVI = {YESPOWER_0_5, 4096, 32, "WaviBanana", 10}; // WAVI | |
static yespower_params_t yespower_KOTO = {YESPOWER_0_5, 2048, 8, NULL, 80}; // KOTO: without const, because it obtains from loop: thanks twitter@WO01_ | |
void yespower_hash( const char *input, char *output, uint32_t len ) |
# Copyright (c) 2013-2016 The Bitcoin Core developers | |
# Distributed under the MIT software license, see the accompanying | |
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
DIST_SUBDIRS = secp256k1 univalue | |
AM_LDFLAGS = $(PTHREAD_CFLAGS) $(LIBTOOL_LDFLAGS) $(HARDENED_LDFLAGS) | |
AM_CXXFLAGS = $(HARDENED_CXXFLAGS) $(ERROR_CXXFLAGS) | |
AM_CPPFLAGS = $(HARDENED_CPPFLAGS) | |
EXTRA_LIBRARIES = |
참고: https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md
리눅스 빌드와 별개의 폴더를 만들어야함. HOST 설정때문에 리눅스 빌드가 안나옴
cd && \
git clone https://github.com/bitcoin/bitcoin.git && \
\
sudo apt install \
// Copyright (c) 2010 Satoshi Nakamoto | |
// Copyright (c) 2009-2017 The Bitcoin Core developers | |
// Copyright (c) 2018 The Sugarchain developers | |
// Distributed under the MIT software license, see the accompanying | |
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
#include <chainparams.h> | |
#include <consensus/merkle.h> | |
#include <tinyformat.h> |
/*- | |
* Copyright 2018 Sugarchain Developers | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* 1. Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* 2. Redistributions in binary form must reproduce the above copyright |