项目依赖:
Dependencies
------------
Python 3.2+ http://python.org
python-bitcoinrpc https://github.com/jgarzik/python-bitcoinrpc (JSON RPC API)
python-base58 https://gitorious.org/bitcoin/python-base58
Optional Dependencies
---------------------
midstate http://gitorious.org/midstate/midstate
Psycopg2 http://initd.org/psycopg/
PyMySQL http://www.pymysql.org/
------------
Python 3.2+ http://python.org
python-bitcoinrpc https://github.com/jgarzik/python-bitcoinrpc (JSON RPC API)
python-base58 https://gitorious.org/bitcoin/python-base58
Optional Dependencies
---------------------
midstate http://gitorious.org/midstate/midstate
Psycopg2 http://initd.org/psycopg/
PyMySQL http://www.pymysql.org/
项目用到的JSON RPC:
jsonrpc_getblocktemplate.py
jsonrpc_getmemorypool
jsonrpc_getwork
jsonrpc_setworkaux
jsonrpcserver
薛向磊:
stratum:协议名,gotwork协议的演进。
share:矿机根据节点设定的难度系数提交的符合要求的nonce。(节点给矿机设定的难度系数<全网难度系数[hash值前缀0的个数])
Eloipool
supports merged mining using the
setworkaux
/
gotwork
RPC interface.
A simple port of namecoin's merged-mine-
proxy
to this interface is available
Eloipool 支持多币种挖矿,使用的是setworkaux/gotwork 接口。支持namecoin的merged-mine- proxy端口配置。
here:
https://gitorious.org/~Luke-Jr/bitcoin/luke-jr-bitcoin/blobs/namecoin_mmm/contrib/merged-mine-proxy
Please be advised that:
-
Eloipool
does not provide any interface for
longpolling
aux
chains.不为长轮询的
aux chain提供接口
- Empty and
longpoll
merkle
roots are generated only as-needed, and will NOT be
regenerated when CoinbaseAux changes. This means shares found by
getwork
miners after a
longpoll
will almost always be stale on your
aux
chain(s).
This problem does not affect GBT or stratum miners.
配置文件:config.py
Eloipool的配置文件在源代码里。
# JSONRPCAddresses, etc) excluding the final comma.
# For example (this is WRONG):
# JSONRPCAddresses = (
# ('', 8337) # <-- 每个address条目后必须以","结尾,最后一个条目后也要加
# )
# 没有最后的,option list只能包含一个条目,Python解析的时候会把main()当做一个子表达式而不是list。
# 如果发生这样的情况,会出现crazy errors,系统无法正常运行。所以别忘了",".
### server相关配置
# server的Name
ServerName = 'Private
Eloipool
'
### server scaling/load配置
# Share hashes must be below this to be valid shares
# If dynamic targetting is enabled, this is a minimum???
ShareTarget = 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff