美文网首页
Mac下Grin挖矿

Mac下Grin挖矿

作者: Geeks_Chen | 来源:发表于2019-01-16 18:30 被阅读253次

前言
Grin 是一个基于 MimbleWimble 协议的开源项目。
任何人都可以通过 Grin 交易或储蓄现代货币,而不用担心外部控制和压迫。Grin 是为了满足未来几十年,而非一时的需求。Grin 的目标用户是所有人,无论地域、文化、行业和权利之间有何差异。

1、挖矿准备

1.1、创建Grin目录

mkdir grin && cd grin
F0DA4D1C-5402-4E2A-A844-080B4AA93417.png

1.2、安装挖矿软件

wget https://github.com/mimblewimble/grin-miner/releases/download/v1.0.0/grin-miner-v1.0.0-479967148-osx.tgz

1.3、解压,修改配置文件

 tar -zxvf grin-miner-v1.0.0-479967148-osx.tgz
WeChat6796b03d91a8b706642766c9244766a4.png
nano grin-miner.toml 
# Sample Server Configuration File for Grin-Miner
#
# Grin-Miner will look for this file in these places: in the following
# order:
#
# -The working directory
# -The directory in which the executable resides

#########################################
### LOGGING CONFIGURATION             ###
#########################################

[logging]

# Whether to log to stdout
log_to_stdout = true

# Log level for stdout: Critical, Error, Warning, Info, Debug, Trace
stdout_log_level = "Info"

# Whether to log to a file
log_to_file = true

# Log level for file: Critical, Error, Warning, Info, Debug, Trace
file_log_level = "Debug"

# Log file path
log_file_path = "grin-miner.log"

# Whether to append to the log file (true), or replace it on every run (false)
log_file_append = true

#########################################
### MINING CLIENT CONFIGURATION       ###
#########################################

[mining]

# whether to run the tui
run_tui = false

# listening grin stratum server url
stratum_server_addr = "grin.sparkpool.com:6666"

# login for the stratum server (if required)
stratum_server_login = "1101612342@qq.com"

# password for the stratum server (if required)
#stratum_server_password = "x"

# whether tls is enabled for the stratum server
stratum_server_tls_enabled = false

#The directory in which mining plugins are installed
#if not specified, grin miner will look in the directory /deps relative
#to the executable

miner_plugin_dir = "plugins"

###############################################################
### CUCKAROO (i.e. GPU-Friendly) MINER PLUGIN CONFIGURATION ###
###############################################################

# Multiple plugins can be specified, (e.g. a cpu
# miner and a gpu miner running in parallel)
# Use a single plugin instance per device, as
# demonstrated below.

# Multiple instances of the same plugin can be loaded
# and used with different devices. On CPU plugins
# you'll likely only be using a single instance
# but in CUDA plugins the device number can be set
# corresponding to the device ID. (use nvidia-smi to find this)

### CUCKAROO CPU SOLVERS (Asic Resist, or GPU-Friendly)

# The fastest cpu algorithm, but consumes the most memory

[[mining.miner_plugin_config]]
plugin_name = "cuckaroo_cpu_compat_29"
[mining.miner_plugin_config.parameters]
nthreads = 1

# As above, but for processors supporting avx2

#[[mining.miner_plugin_config]]
#plugin_name = "cuckaroo_cpu_avx2_29"
#[mining.miner_plugin_config.parameters]
#nthreads = 4

# CUCKAROO CUDA SOLVER
#
# CUDA plugins are not built by default. To build:
#1) Ensure the latest cuda toolkit is installed
#   (nvcc should be in your PATH)
#   Wrong gcc? install gcc-5 g++-5; export CC=`which gcc-5`; # then build
#2) Ensure the 'build-cuda-plugin' feature is included in Cargo.toml, e.g:
#   cuckoo_miner = { path = "./cuckoo-miner", features = ["build-cuda-plugins"]}
#
# Parameters can be set individually for each device by using multiple
# instance of each plugin.  device 0 is used by default
#

# currently requires 5.5GB+ GPU memory
#[[mining.miner_plugin_config]]
#plugin_name = "cuckaroo_cuda_29"
#[mining.miner_plugin_config.parameters]
#device = 0
#cpuload = 1
#ntrims = 176
#genablocks = 4096
#genatpb = 128
#genbtpb = 128
#trimtpb = 512
#tailtpb = 1024
#recoverblocks = 1024
#recovertpb = 1024

# e.g. To enable multiple devices (copy params from above as needed)

#[[mining.miner_plugin_config]]
#plugin_name = "cuckaroo_cuda_29"
#[mining.miner_plugin_config.parameters]
#device = 1


# mean OpenCL supports both NVidia and AMD
# to install run ./install_ocl_plugins.sh script
#[[mining.miner_plugin_config]]
#plugin_name = "ocl_cuckaroo"
#[mining.miner_plugin_config.parameters]
# 0 for default, 1 for AMD, 2 for NVidia, specify if you have
# cards from both vendors
#platform = 0
# ID withing the platform
#device = 0

###############################################################
### CUCKATOO (i.e. ASIC-Friendly) MINER PLUGIN CONFIGURATION ##
###############################################################

#mean cpu
#[[mining.miner_plugin_config]]
#plugin_name = "cuckatoo_mean_cpu_compat_31"
#[mining.miner_plugin_config.parameters]
#nthreads = 4

#mean cpu avx2
#[[mining.miner_plugin_config]]
#plugin_name = "cuckatoo_mean_cpu_avx2_31"
#[mining.miner_plugin_config.parameters]

#mean cuda, will work on a 1080TI with expand rounds set to 2
#memory requirements are tight, don't drive a display
#off the same card while trying to mine with an 11GB card

#[[mining.miner_plugin_config]]
#plugin_name = "cuckatoo_mean_cuda_gtx_31"
#[mining.miner_plugin_config.parameters]
#device = 0
#expand = 2
#cpuload = 1
#ntrims = 176
#genablocks = 4096
#genatpb = 128
#genbtpb = 128
#trimtpb = 512
#tailtpb = 1024
#recoverblocks = 1024
#recovertpb = 1024

#mean cuda optimised to use slightly less memory,
#will work on a 2080TI with expand rounds set to 2
#as above, memory requirements are tight, don't drive a display
#off the same card while trying to mine with an 11GB card

#[[mining.miner_plugin_config]]
#plugin_name = "cuckatoo_mean_cuda_rtx_31"
#[mining.miner_plugin_config.parameters]
#device = 0
#expand = 2
#cpuload = 1
#ntrims = 176
#genablocks = 4096
#genatpb = 128
#genbtpb = 128
#trimtpb = 512
#tailtpb = 1024
#recoverblocks = 1024
#recovertpb = 1024

#lean cuda
#[[mining.miner_plugin_config]]
#plugin_name = "cuckatoo_lean_cuda_31"
#[mining.miner_plugin_config.parameters]
#expand = 0
#device = 0
#cpuload = 1
#ntrims = 176
#genablocks = 4096
#genatpb = 128
#genbtpb = 128
#trimtpb = 512
#tailtpb = 1024
#recoverblocks = 1024
#recovertpb = 1024

# lean OpenCL supports both NVidia and AMD
# very slow but requires ~ 3GB of RAM
# to install run ./install_ocl_plugins.sh script
#[[mining.miner_plugin_config]]
#plugin_name = "ocl_cuckatoo"
#[mining.miner_plugin_config.parameters]
# 0 for default, 1 for AMD, 2 for NVidia, specify if you have
# cards from both vendors
#platform = 0
# ID withing the platform
#device = 0
#edge_bits = 31

2、开始挖矿

2.1、启动挖矿软件&查看挖矿状态

 ./grin-miner  
WeChatcfcdcf4b31676e9a2cf7d94669c11eb1.png

3、查看收益

3.1、访问https://sparkpool.com/ & 输入配置的邮箱

WeChat8f616c38cd97f3f46994a5e0b9d26f87.png

3.2、查看矿机状态&收益


矿机状态.png
收益

注意:不要随意用电脑挖矿,听人劝吃饱饭。


WeChat0c724a0eff96213d1ee2b2af9b4f2e6c.png
WeChatac1773cf53e95da60bdcaae3e144c60c.png

本文永久地址:

http://tbke.coding.me/2019/01/16/blockChain11/

相关文章

网友评论

      本文标题:Mac下Grin挖矿

      本文链接:https://www.haomeiwen.com/subject/aazmdqtx.html