Pages:
Author

Topic: [ANN] Eloipool - FAST Python3 pool server software - GBT/stratum/dyntarget/proxy - page 5. (Read 123077 times)

newbie
Activity: 2
Merit: 0
I installed Eloipool and all its required dependencies. I tried eloipool on two different machines with the same problem. I get two errors.

The first error is when bfgminer connects over straturm on port 3334:

Code:

2014-02-19 16:43:02,707 StratumServer ERROR Traceback (most recent call last):
  File "/home/xxx/eloipool-server-master/eloipool/networkserver.py", line 392, in serve_forever
    f()
  File "/home/xxx/eloipool-server-master/eloipool/stratumserver.py", line 135, in sendJob
    self.push(self.server.JobBytes)
AttributeError: 'StratumServer' object has no attribute 'JobBytes'




The second type of error that appears whenever I Start the server and floods my screen repetitively is

Code:
2014-02-19 16:51:50,480	merkleMaker	CRITICAL	Traceback (most recent call last):
  File "/home/xxx/eloipool-server-master/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/home/xxx/eloipool-server-master/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/home/xxx/eloipool-server-master/eloipool/merklemaker.py", line 648, in merkleMaker_II
    return self._updateMerkleTree()
  File "/home/xxx/eloipool-server-master/eloipool/merklemaker.py", line 553, in _updateMerkleTree
    if self.needMerkle == 2:
AttributeError: 'merkleMaker' object has no attribute 'needMerkle'

I have been trying to fix this problem for two days before I come here and appreciate any help!

sr. member
Activity: 267
Merit: 250
eloipool only supports sha256, basically only bitcoin is supported.
all cryptocurrency sha256 is supported ? or ONLY bitcoin ??
Thank you.

alt sha256s work well too. you need to change the UpstreamNetworkId in the config though to match the alt.

Code:
# Network ID for the primary blockchain
# Other known network IDs can be found at:
#     https://en.bitcoin.it/wiki/Protocol_specification#Message_structure
UpstreamNetworkId = b'\x0b\x11\x09\x07'  # testnet3
Thank you.
Let say i need to run bitcoin and continuum, all sha256 based.
I need to run 2 separate copies Eloipool?

https://bitcointalksearch.org/topic/m.3807307
jr. member
Activity: 66
Merit: 6
eloipool only supports sha256, basically only bitcoin is supported.
all cryptocurrency sha256 is supported ? or ONLY bitcoin ??
Thank you.

alt sha256s work well too. you need to change the UpstreamNetworkId in the config though to match the alt.

Code:
# Network ID for the primary blockchain
# Other known network IDs can be found at:
#     https://en.bitcoin.it/wiki/Protocol_specification#Message_structure
UpstreamNetworkId = b'\x0b\x11\x09\x07'  # testnet3
Thank you.
Let say i need to run bitcoin and continuum, all sha256 based.
I need to run 2 separate copies Eloipool?
sr. member
Activity: 267
Merit: 250
eloipool only supports sha256, basically only bitcoin is supported.
all cryptocurrency sha256 is supported ? or ONLY bitcoin ??
Thank you.

alt sha256s work well too. you need to change the UpstreamNetworkId in the config though to match the alt.

Code:
# Network ID for the primary blockchain
# Other known network IDs can be found at:
#     https://en.bitcoin.it/wiki/Protocol_specification#Message_structure
UpstreamNetworkId = b'\x0b\x11\x09\x07'  # testnet3
jr. member
Activity: 66
Merit: 6

Your miner is configured to use scrypt, which is used by litecoin and various other crypotcoins.  eloi does NOT support scrypt...

Hi, is this patch helps me to support scrypt https://gitorious.org/bitcoin/luke-jr-bitcoin/source/8f3f29550c2ad33f5635799ba835276eaebb4a2e:contrib/merged-mine-proxy ??

eloipool only supports sha256, basically only bitcoin is supported.
all cryptocurrency sha256 is supported ? or ONLY bitcoin ??
Thank you.
newbie
Activity: 9
Merit: 0
I am getting this in the logs:
Code:
2014-02-16 23:15:09,278	BitcoinLink	DEBUG	Received block inv over p2p for 0000000000000002eb4caf6eabc94dbaafb569427b6b0a414aa363dd9ee07dc

Does it mean that there is a block available for the pool? The miner is running, why is it not picking up tje block?


I'm assuming you are referring to this.  This just means there has been a new block found by the network, not your pool. bitcoind is notifying eloipool of the new block.
Understood, thanks
newbie
Activity: 37
Merit: 0
I am getting this in the logs:
Code:
2014-02-16 23:15:09,278	BitcoinLink	DEBUG	Received block inv over p2p for 0000000000000002eb4caf6eabc94dbaafb569427b6b0a414aa363dd9ee07dc

Does it mean that there is a block available for the pool? The miner is running, why is it not picking up tje block?


I'm assuming you are referring to this.  This just means there has been a new block found by the network, not your pool. bitcoind is notifying eloipool of the new block.
legendary
Activity: 2576
Merit: 1186
I am getting a warning in eloipool.log file

Code:
2014-02-16 02:48:08,360	merkleMaker	CRITICAL	Traceback (most recent call last):
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 648, in merkleMaker_II
    return self._updateMerkleTree()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/opt/eloipool-server/eloipool/bitcoinrpc/authproxy.py", line 112, in __call__
    'Content-type': 'application/json'})
  File "/usr/lib/python3.2/http/client.py", line 967, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.2/http/client.py", line 995, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/lib/python3.2/http/client.py", line 850, in putrequest
    raise CannotSendRequest(self.__state)
http.client.CannotSendRequest: Request-sent

What is it and how to get read of it?

Thanks,
This seems to be yet another bug in the latest bitcoinrpc.
Eligius runs 22e290b0bcabf6bc88b4d3f5a7d074677e8fe7b9
newbie
Activity: 9
Merit: 0
I am getting this in the logs:
Code:
2014-02-16 23:15:09,278	BitcoinLink	DEBUG	Received block inv over p2p for 00000000000000002eb4caf6eabc94dbaafb569427b6b0a414aa363dd9ee07dc
eloipool.py: no process found
2014-02-16 23:15:09,471 merkleMaker INFO New block: 00000000000000002eb4caf6eabc94dbaafb569427b6b0a414aa363dd9ee07dc (height: 286323; bits: 19015f53)
2014-02-16 23:15:09,474 JSONRPCServer INFO Nobody to longpoll
2014-02-16 23:15:10,191 JSONRPCServer INFO Nobody to longpoll
eloipool.py: no process found
2014-02-16 23:18:32,053 BitcoinLink DEBUG Received block inv over p2p for 00000000000000004b86d9bc749093ddaa11156fb007a3735125898df92f654a
2014-02-16 23:18:32,215 merkleMaker INFO New block: 00000000000000004b86d9bc749093ddaa11156fb007a3735125898df92f654a (height: 286324; bits: 19015f53)
2014-02-16 23:18:32,216 JSONRPCServer INFO Nobody to longpoll
2014-02-16 23:18:32,828 JSONRPCServer INFO Nobody to longpoll
2014-02-16 23:23:42,376 BitcoinLink DEBUG Received block inv over p2p for 0000000000000001337babf9df90a713cc1abfac2bb63b00b8d336a7b9017e5e
eloipool.py: no process found
2014-02-16 23:23:42,570 merkleMaker INFO New block: 0000000000000001337babf9df90a713cc1abfac2bb63b00b8d336a7b9017e5e (height: 286325; bits: 19015f53)
2014-02-16 23:23:42,573 JSONRPCServer INFO Nobody to longpoll
2014-02-16 23:23:43,220 JSONRPCServer INFO Nobody to longpoll
2014-02-16 23:28:11,354 BitcoinLink DEBUG Received block inv over p2p for 0000000000000000479bceaf71cf63741e9bf2905415d46cdf9c33d09b3aa9ee
eloipool.py: no process found
2014-02-16 23:28:11,548 merkleMaker INFO New block: 0000000000000000479bceaf71cf63741e9bf2905415d46cdf9c33d09b3aa9ee (height: 286326; bits: 19015f53)
2014-02-16 23:28:11,558 JSONRPCServer INFO Nobody to longpoll
2014-02-16 23:28:12,292 JSONRPCServer INFO Nobody to longpoll

Does it mean that there is a block available for the pool? The miner is running, why is it not picking up tje block?
newbie
Activity: 9
Merit: 0
...

I usually get this when I restart my pool server, eloipool starts and bitcoind hasn't finished starting up.  Is your bitcoind still downloading blocks?


Hmm, all of a sudden started to work. And I think I am very sad... I just missed a block Sad
newbie
Activity: 9
Merit: 0
I am getting a warning in eloipool.log file

Code:
2014-02-16 02:48:08,360	merkleMaker	CRITICAL	Traceback (most recent call last):
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 648, in merkleMaker_II
    return self._updateMerkleTree()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/opt/eloipool-server/eloipool/bitcoinrpc/authproxy.py", line 112, in __call__
    'Content-type': 'application/json'})
  File "/usr/lib/python3.2/http/client.py", line 967, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.2/http/client.py", line 995, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/lib/python3.2/http/client.py", line 850, in putrequest
    raise CannotSendRequest(self.__state)
http.client.CannotSendRequest: Request-sent

What is it and how to get read of it?

Thanks,

I usually get this when I restart my pool server, eloipool starts and bitcoind hasn't finished starting up.  Is your bitcoind still downloading blocks?


I tried different scenarios. Waited for bitcoin to finish syncing. Tried to restart. Start bitcoin wait for a while and start eloipool.
Everything behaves the same way.
newbie
Activity: 37
Merit: 0
I am getting a warning in eloipool.log file

Code:
2014-02-16 02:48:08,360	merkleMaker	CRITICAL	Traceback (most recent call last):
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 648, in merkleMaker_II
    return self._updateMerkleTree()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/opt/eloipool-server/eloipool/bitcoinrpc/authproxy.py", line 112, in __call__
    'Content-type': 'application/json'})
  File "/usr/lib/python3.2/http/client.py", line 967, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.2/http/client.py", line 995, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/lib/python3.2/http/client.py", line 850, in putrequest
    raise CannotSendRequest(self.__state)
http.client.CannotSendRequest: Request-sent

What is it and how to get read of it?

Thanks,

I usually get this when I restart my pool server, eloipool starts and bitcoind hasn't finished starting up.  Is your bitcoind still downloading blocks?
newbie
Activity: 9
Merit: 0
I am getting a warning in eloipool.log file

Code:
2014-02-16 02:48:08,360	merkleMaker	CRITICAL	Traceback (most recent call last):
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 692, in run
    self.merkleMaker_I()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 682, in merkleMaker_I
    self.merkleMaker_II()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 648, in merkleMaker_II
    return self._updateMerkleTree()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 548, in _updateMerkleTree
    self._updateMerkleTree_I()
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 512, in _updateMerkleTree_I
    r = self._updateMerkleTree_fromTS(TS)
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 477, in _updateMerkleTree_fromTS
    MP = self._CallGBT(TS)
  File "/opt/eloipool-server/eloipool/merklemaker.py", line 327, in _CallGBT
    MP = access.getblocktemplate(self.GBTReq)
  File "/opt/eloipool-server/eloipool/bitcoinrpc/authproxy.py", line 112, in __call__
    'Content-type': 'application/json'})
  File "/usr/lib/python3.2/http/client.py", line 967, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.2/http/client.py", line 995, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/lib/python3.2/http/client.py", line 850, in putrequest
    raise CannotSendRequest(self.__state)
http.client.CannotSendRequest: Request-sent

What is it and how to get read of it?

Thanks,
newbie
Activity: 37
Merit: 0
Is there a complete guide some where to installing Eloipool from scratch? And is there any kind of support site like P2pool has?

Thanks,


jgarzik did a little step-by-step guide here. I've used it, it works.
https://bitcointalksearch.org/topic/avalon-users-bitcoind-eloipool-configuration-158105

Or you can use zero-asic's Install script. I've used it as well it also works.
https://bitcointalksearch.org/topic/install-scripts-for-eloipool-bitcoind-private-pool-on-ubuntu-1204-171782

As for a support site, bitcointalk.org is as good as it gets.
hero member
Activity: 616
Merit: 500
Is there a complete guide some where to installing Eloipool from scratch? And is there any kind of support site like P2pool has?

Thanks,
newbie
Activity: 37
Merit: 0
I followed the directions and I get no errors. Port 8338 comes live and can be seen via netstat.

gentoo001 home # ./minerd -o stratum+tcp://192.168.1.8:8338 -u admin -p butthole -q

Given your configuration:

# Addresses to listen on for JSON-RPC GBT/getwork server
JSONRPCAddresses = (
        ('', 8337),
)

# Addresses to listen on for Stratum mining server
StratumAddresses = (
        ('', 3334),
)

# Addresses to listen on for Bitcoin node
# Note this will only be used to distribute blocks the pool finds, nothing else
BitcoinNodeAddresses = (
        ('', 8338),
)

Your miners should connect to:
8337 for GBT/Getwork
3334 for stratum

You miner should be something like (sorry not too familiar with minerd):

./minerd -o http://192.168.1.8:8337 -u admin -p butthole -q
or
./minerd -o stratum+tcp://192.168.1.8:3334 -u admin -p butthole -q


8338 is a listening port for your bitcoind to connect to. You need to add a line to the configuration file for bitcoind. If eloipool and bitcoind are not on the same server you need to put the IP of the box running eloipool.
addnode=127.0.0.1:8338
sr. member
Activity: 264
Merit: 250
derp
On which network are you trying to mine?

eloipool only supports sha256, basically only bitcoin is supported.

Your miner is configured to use scrypt, which is used by litecoin and various other crypotcoins.  eloi does NOT support scrypt...

Perhaps you want to correctly configure your miner?

Its running on bitcoind, though once I figure it out I will be hotwiring it for other coins.
I am not sure about how it is configure for the network, none of the tutorials referenced that specifically.
sr. member
Activity: 263
Merit: 250
Pool operator of Triplemining.com
On which network are you trying to mine?

eloipool only supports sha256, basically only bitcoin is supported.

Your miner is configured to use scrypt, which is used by litecoin and various other crypotcoins.  eloi does NOT support scrypt...

Perhaps you want to correctly configure your miner?
sr. member
Activity: 264
Merit: 250
derp
I am trying to get eloipool up and running in a solo mining configuration using this installation https://bitcointalksearch.org/topic/avalon-users-bitcoind-eloipool-configuration-158105 eolipool starts up error free but clients cannot connect. The port is up and no visual errors in any log. tcpdump does show the packets hitting the port.

I followed the directions and I get no errors. Port 8338 comes live and can be seen via netstat.

tcp6      15      0 :::8338                 :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6      70      0 192.168.1.8:8338        192.168.1.8:33885       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33896       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33890       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33897       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33899       CLOSE_WAIT
tcp6      70      0 192.168.1.8:8338        192.168.1.8:33892       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33895       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33891       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33900       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33889       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33894       CLOSE_WAIT
tcp6      71      0 192.168.1.8:8338        192.168.1.8:33898       CLOSE_WAIT
tcp6      70      0 192.168.1.8:8338        192.168.1.8:33887       CLOSE_WAIT
tcp6      70      0 192.168.1.8:8338        192.168.1.8:33884       CLOSE_WAIT
tcp6      70      0 127.0.0.1:8338          127.0.0.1:49649         CLOSE_WAIT



gentoo001 home # ./minerd -o stratum+tcp://192.168.1.8:8338 -u admin -p butthole -q
[2014-01-18 22:51:19] 1 miner threads started, using 'scrypt' algorithm.
[2014-01-18 22:51:19] Starting Stratum on stratum+tcp://192.168.1.8:8338
[2014-01-18 22:51:49] stratum_subscribe timed out
[2014-01-18 22:51:49] ...retry after 30 seconds
[2014-01-18 22:52:49] stratum_subscribe timed out
[2014-01-18 22:52:49] ...retry after 30 seconds





gentoo001 eloipool # cat config.py
# Please note that config files are Python source code!
# A common mistake is to put an option list (such as TemplateChecks,
# JSONRPCAddresses, etc) excluding the final comma.
# For example (this is WRONG):
#     JSONRPCAddresses = (
#         ('', 8337)  # <-- there must be a comma after EVERY item, even last
#     )
# Without the final comma, should the option list ever have only one item in
# it, Python would interpret the "main" parenthesis as a mere sub-expression
# instead of a list of values. If that occurs, you might get crazy errors, or
# things might just not work correctly. Be careful to not miss the commas.

### Settings relating to server identity

# Name of the server
ServerName = 'Whirpools'

### Settings relating to server scaling/load

# Share hashes must be below this to be valid shares
# If dynamic targetting is enabled, this is a minimum
ShareTarget = 0x000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffff

# Automatically adjust targets per username
# 0 = disabled
# 1 = arbitrary targets
# 2 = power of two difficulties (zero bit counts)
DynamicTargetting = 2

# How many shares per minute to try to achieve on average
DynamicTargetGoal = 6

# Number of seconds hashrate is measured over
DynamicTargetWindow = 120

# Minimum and maximum of merkle roots to keep queued
WorkQueueSizeRegular = (0x100, 0x1000)

# Minimum and maximum of BLANK merkle roots to keep queued
# (used if we run out of populated ones)
WorkQueueSizeClear = (0x1000, 0x2000)

# Minimum and maximum of BLANK merkle roots to keep queued, one height up
# (used for longpolls)
WorkQueueSizeLongpoll = (0x1000, 0x2000)

# How long to wait between getmemorypool updates normally
MinimumTxnUpdateWait = 5

# How long to wait between retries if getmemorypool fails
TxnUpdateRetryWait = 1

# How long to sleep in idle loops (temporary!)
IdleSleepTime = 0.1

### Settings relating to reward generation

# Address to generate rewards to
TrackerAddr = '13siH3VpL4nwJCXpWnMMAaSZCAz9EVsNCv'  # testnet

# Coinbaser command to control reward delegation
# %d is replaced with the total value of the block reward (in satoshis)
# %p is replaced with the previous block hash in hexadecimal
# NOTE: This example donates 1% of block rewards to Luke-Jr for Eloipool development
#CoinbaserCmd = 'echo -e "1\\n$((%d / 100))\\n1579aXhdwvKZEMrAKoCZhzGuqMa8EonuXU"'

### Settings relating to upstream data providers

# JSON-RPC servers to get block templates from
# See https://en.bitcoin.it/wiki/BIP_0023#Logical_Services for key details
TemplateSources = (
        {
                'name': 'primary',
                'uri': 'http://admin:"bunghole"@localhost:8332',
                'priority': 0,
                'weight': 1,
        },
        {
                'name': 'secondary',
                'uri': 'http://admin:"bunghole"@localhost:18332',
                'priority': 1,
                'weight': 1,
        },
)

# JSON-RPC servers to check block proposals with
# If none provided, and selected source supports proposals, it alone will also
# be used for checking
# NOTE: Any servers listed here MUST support BIP 23 Block Proposals
# NOTE: Mainline bitcoind (as of 0.Cool does NOT support this (though the 0.8.0.eligius branch does)
TemplateChecks = (
#       {
#               'name': 'primary',
#               'uri': 'http://admin:"bunghole"@localhost:8332',
#
#               # If 'unanimous' is true, no template will be used if this node
#               # rejects it
#               'unanimous': False,
#
#               # If check servers disagree on all templates, they will be scored and
#               # the highest score will be used; 'weight' can be used to control the
#               # scoring per-server
#               'weight': 1.1,
#       },
#       {
#               'name': 'secondary',
#               'uri': 'http://admin:"bunghole"@localhost:18332',
#               'unanimous': False,
#               'weight': 1,
#       },
)

# JSON-RPC servers to submit found blocks to (when they meet the full target)
# The specific TemplateSource that the block was based on will always be sent
# the block first.
# If setting is not specified, or None, full TemplateSources list will be used.
# If an empty list, no extra submissions will be attempted.
# If an empty list, and the block was found on a "clear" merkle root (not based
# on any TemplateSource), the full TemplateSources list will be used.
BlockSubmissions = (
        {
                'name': 'primary',
                'uri': 'http://admin:"bunghole"@localhost:8332',
        },
        {
                'name': 'secondary',
                'uri': 'http://admin:"bunghole"@localhost:18332',
        }
)

# Templates will not be used unless they have an acceptance ratio above this
# Range: 0.00 - 1.00
MinimumTemplateAcceptanceRatio = 0

# No template with a combined total score below this will be used
MinimumTemplateScore = 1

# Set to True if you want shares meeting the upstream target to wait for a
# response from an upstream server before logging them. Otherwise, for such
# shares, upstreamResult will always be True and upstreamRejectReason will
# always be None. Note that enabling this may cause shares to be logged out of
# order, or with the wrong timestamp (if your share logger uses the log-time
# rather than share-time).
DelayLogForUpstream = True

# Bitcoin p2p server for announcing blocks found
UpstreamBitcoindNode = ('127.0.0.1', 8333)  # mainnet

# Network ID for the primary blockchain
# Other known network IDs can be found at:
#     https://en.bitcoin.it/wiki/Protocol_specification#Message_structure
#UpstreamNetworkId = b'\x0b\x11\x09\x07'  # testnet3
UpstreamNetworkId = b'\xF9\xBE\xB4\xD9'

# Secret username allowed to use setworkaux
#SecretUser = ""

# URI to send gotwork with info for every share submission
#GotWorkURI = ''

# Share hashes must be below this to be submitted to gotwork
GotWorkTarget = 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff

# Aim to produce blocks with transaction counts that are a power of two
# This helps avoid any chance of someone abusing CVE-2012-2459 with them
# 1 = cut out feeless transactions; 2 = cut out even fee-included transactions (if possible)
#POT = 2

# Avoid mining feeless transactions except to satisfy POT
# Note this only works if POT is in fact enabled in the first place
Greedy = False

### Settings relating to network services
# Note that Eloipool only supports IPv6 sockets, and if you want to bind to an
# IPv4 address you will need to prepend it with ::ffff: eg ::ffff:192.168.1.2

# Addresses to listen on for JSON-RPC GBT/getwork server
JSONRPCAddresses = (
        ('', 8337),
)

# Addresses to listen on for Stratum mining server
StratumAddresses = (
        ('', 3334),
)

# Addresses to listen on for Bitcoin node
# Note this will only be used to distribute blocks the pool finds, nothing else
BitcoinNodeAddresses = (
        ('', 8338),
)

# Addresses that are allowed to "spoof" from address with the X-Forwarded-For header
TrustedForwarders = ('::ffff:127.0.0.1',)


# Logging of shares:
ShareLogging = (
        {
                'type': 'logfile',
                'filename': 'share-logfile',
                'format': "{time} {Q(remoteHost)} {username} {YN(not(rejectReason))} {dash(YN(upstreamResult))} {dash(rejectReason)} {solution}\n",
        },
        {
                'type': 'sql',
                'engine': 'mysql',
                'dbopts': {
                        'host': 'localhost',
                        'db': 'pools',
                        'user': 'admin',
                        'password': 'bunghole',
                },
                'statement': "insert into shares (rem_host, username, our_result, upstream_result, reason, solution) values ({Q(remoteHost)}, {username}, {YN(not(rejectReason))}, {YN(upstreamResult)}, {rejectReason}, unhex({solution}))",
#       },
#       {
#               'type': 'sql',
#               'engine': 'sqlite',
#               'dbopts': {
#                       'database': 'share.db',
#               },
#               'statement': "insert into shares (remoteHost, username, rejectReason, upstreamResult, solution) values ({remoteHost}, {username}, {rejectReason}, {upstreamResult}, {solution})",
        },
)

# Authentication
# There currently are 2 modules.
# - allowall will allow every username/password combination
# - simplefile will use the username/passwords from a file, which contains usernamepassword\n with no \n on the last line.
Authentication =  (
        {
                'module': 'allowall',
        },
#       {
#               'module': 'simplefile',
#               'filename': 'userdatabase',
#       },
)

### Settings related to poolserver logging

# By default, significant events will be printed to the interactive console
# You can customize your logging using either simple parameters, or Python's advanced logging framework
# Note that using Python's logging framework will override the default console logging!

# To simply log everything to the system log (syslog) as well:
# LogToSysLog = True

# To make a log file:
# LogFile = 'filename.log'

# For a rotating log file:
LogFile = {
        'filename': 'eolipool.log',
        'when': 'midnight',
        'backupCount': 7,
}
# For details, see:
# http://docs.python.org/3/library/logging.handlers.html#logging.handlers.TimedRotatingFileHandler

newbie
Activity: 7
Merit: 0
need support to create a pool for a new currency. Who can help me send PM and reward in the currency in question
Pages:
Jump to: