Giter VIP home page Giter VIP logo

bitcoin-pool's Introduction

Distributed binaries may or may not have one or more of the following features 
enabled.


*********************
* REMOTE MINER SERVER
*********************
Place a text file named banned.txt with IP addresses of banned clients in the 
bitcoin working directory.  One IP address should be entered per line, so each
IP address is separated by a newline.

Remote miner server arguments

-remoteserver
	Turns on the remote server.
	
-remotebindaddr=x.x.x.x
	Bind server to specific adapter.  The default is 127.0.0.1.  Note that this 
	will only accept connections from the local computer.
	
-remotebindport=xxxxx
	Bind server to specific port.  The default is 8335.
	
-remotepassword=xxxxx
	Set a password to access the server.  The default is a blank password.
	
-distributiontype=connected|contributed
	Sets method used to distribute bitcoins.  "connected" will distribute coins
	only to those clients that were connected when the block being solved was
	created.  The distribution is based on each connected clients calculated hash 
	rate against the total hash rate at the time a new block is created. 
	"contributed" will accrue all hashes sent to the server for a given address 
	since the last generated block.  A client may freely disconnect and reconnect 
	and will continue accumulating hashes to whatever address the client specified.
	The distribution of coins with this method is based on the hashes accrued by 
	each address against the total hashes accured by everyone.  The server will
	save the values when it shuts down and load them back up on startup.
	
-resethashescontributed
	Resets the count of hashes contributed from each address.


*********************
* REMOTE MINER CLIENT 
*********************
(ARGUMENTS MAY BE COMBINED WITH CUDA/OPENCL ARGUMENTS)
Remote miner client arguments

-server=x.x.x.x
	The address of the server to connect to.  The default is 127.0.0.1.
	
-port=xxxxx
	The port of the server.  The default is 8335.
	
-password=xxxxx
	The password to use when connecting to the server.  The default is a blank 
	password.
	
-address=xxxxxxx
	The bitcoin address you want generated coins sent to.  The default is blank.  
	If the server is using the "connected" ditribution type, a blank address will 
	make the client's share of generated coins be kept by the server.  If the 
	server is using the "contributed" distribution type, a blank address will
	mean the client contributes as normal, but the contribution is ignored when
	determining how to distribute any coins.

-threads=x
	Start this number of miner threads.  The default value is the number of cores
	on your processor if using a CPU miner, or 1 if using a GPU miner.


*********************
* RPC MINER CLIENT 
*********************
(ARGUMENTS MAY BE COMBINED WITH CUDA/OPENCL ARGUMENTS)
RPC miner client arguments

-url=http://example.com:8332
	The URL of the RPC server.
	
-user=username
	The username used to connect to the RPC server.
	
-password=password
	The password used to connect to the RPC server.
	
-threads=x
	Start this number of miner threads.  The default value is the number of cores
	on your processor if using a CPU miner, or 1 if using a GPU miner.
	
-workrefreshms=xxxx
	Work will be refreshed from the server this often.  Each thread that is 
	started needs its own work.  The default value is 4000ms.  If you have a
	fast miner, or are using lots of threads, you might want to reduce this.

-statsurl=http://example.com/stats/json
	The URL of a server that will respond with a json object of the server stats.
	Currently, only slush's server stats are available.  The stats will be
	printed by the client every minute.  Not specifying a url will result in no
	stats being displayed.


*********************
* CUDA MINER
*********************
CUDA miner arguments

-gpu=X
	Turns on GPU processing on specific GPU device.  Indexes start at 0.  If you 
	just use -gpu without =X it will pick the device with the max GFlops.

-aggression=X
	Specifies how many hashes (2^(X-1)) per kernel thread will be calculated.  
	The default is 6.  It starts at 1 and goes to 32, with each successive
	number meaning double the number of hashes.  Sane values are 1 to 12 or
	maybe 14 if you have some super card.

-gpugrid=X
	Specifies what the grid size of the kernel should be.  Useful for fine tuning 
	hash rate.

-gputhreads=X
	Specifies how many threads per kernel invocation should run.  Useful for fine 
	tuning hash rate.

-port=X
	Specifies the port that bitcoin will listen on.  (When run in GUI or daemon)

-rpcport=X
	Specifies the port that the rpc server will listen on.  (When run in GUI or daemon)



*********************
* OPENCL MINER
*********************
Make sure bitcoinmineropencl.cl is in the bitcoin working directory for the server and 
rpc miner, and remotebitcoinmineropencl.cl for the remote miner.

OpenCL miner arguments

-platform=X
	Use specific OpenCL platform at index X.  Indexes start at 0.  Default is 0.
	
-gpu=X
	Turns on GPU processing on specific GPU device on specified platform.
	Indexes start at 0.  If you just use -gpu without =X it will pick the first 
	device found.

-aggression=X
	Specifies how many hashes (2^(X-1)) per kernel thread will be calculated.  
	The default is 6.  It starts at 1 and goes to 32, with each successive
	number meaning double the number of hashes.  Sane values are 1 to 12 or
	maybe 14 if you have some super card.

-gpugrid=X
	Specifies what the grid size of the kernel should be.  Useful for fine tuning 
	hash rate.

-gputhreads=X
	Specifies how many threads per kernel invocation should run.  Useful for fine 
	tuning hash rate.

-port=X
	Specifies the port that bitcoin will listen on.  (When run in GUI or daemon)

-rpcport=X
	Specifies the port that the rpc server will listen on.  (When run in GUI or daemon)

bitcoin-pool's People

Contributors

doublec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bitcoin-pool's Issues

A patch for OpenSuse 11.3

Here is the set of changes that were needed to build on my openSuse system (I also had to rebuild libdb without "disable-cxx"). Not all is good, but I thought this might help someone.

From f4cdc43302a58c71999cdfe9e1598864eca8de1b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=ABl=20Schaerer?= <[email protected]>
Date: Thu, 9 Dec 2010 17:02:55 +0100
Subject: [PATCH] fixes for opensuse

---
CMakeLists.txt            |    3 ++-
src/gpucommon/gpurunner.h |    3 +++
src/headers.h             |    5 ++++-
src/util.h                |    2 +-
4 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5857037..03c640c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -111,7 +111,8 @@ ENDIF(DB_INCLUDE_DIR)
IF(BITCOIN_ENABLE_CUDA)
    FIND_PACKAGE(CUDA REQUIRED)
    IF(CUDA_FOUND)
-       INCLUDE_DIRECTORIES(${CUDA_INCLUDE_DIRS})
+       INCLUDE_DIRECTORIES(${CUDA_INCLUDE_DIRS}
+                    ${CUDA_SDK_ROOT_DIR}/C/common/inc/)
    ENDIF(CUDA_FOUND)
ENDIF(BITCOIN_ENABLE_CUDA)

diff --git a/src/gpucommon/gpurunner.h b/src/gpucommon/gpurunner.h
index ca4fdde..ed84525 100644
--- a/src/gpucommon/gpurunner.h
+++ b/src/gpucommon/gpurunner.h
@@ -1,5 +1,8 @@
#ifndef _bitcoin_gpu_runner_
#define _bitcoin_gpu_runner_
+#include <sstream>
+#include <map>
+extern std::map<std::string, std::string> mapArgs;

template <class STEPTYPE,class DEVICECOUNTTYPE>
class GPURunner
diff --git a/src/headers.h b/src/headers.h
index 99dffe4..19eab29 100644
--- a/src/headers.h
+++ b/src/headers.h
@@ -43,7 +43,10 @@
#include <openssl/rand.h>
#include <openssl/sha.h>
#include <openssl/ripemd.h>
-#include <db_cxx.h>
+
+#define HAVE_CXX_STDHEADERS
+#include <db4/db_cxx.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
diff --git a/src/util.h b/src/util.h
index 2ad2980..8ed0711 100644
--- a/src/util.h
+++ b/src/util.h
@@ -27,7 +27,7 @@ typedef unsigned long long  uint64;
#define UBEGIN(a)           ((unsigned char*)&(a))
#define UEND(a)             ((unsigned char*)&((&(a))[1]))
#define ARRAYLEN(array)     (sizeof(array)/sizeof((array)[0]))
-#define printf              OutputDebugStringF
+//#define printf              OutputDebugStringF

#ifdef snprintf
#undef snprintf
-- 
1.7.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.