1 ### Settings relating to server identity
4 ServerName = 'Private Eloipool'
6 ### Settings relating to server scaling/load
8 # Share hashes must be below this to be valid shares
9 ShareTarget = 0x0000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
11 # Minimum and maximum of merkle roots to keep queued
12 WorkQueueSizeRegular = (0x100, 0x1000)
14 # Minimum and maximum of BLANK merkle roots to keep queued
15 # (used if we run out of populated ones, usually after a block is found)
16 WorkQueueSizeLongpoll = (0x1000, 0x2000)
18 # How long to wait between getmemorypool updates normally
19 MinimumTxnUpdateWait = 5
21 # How long to wait between retries if getmemorypool fails
22 TxnUpdateRetryWait = 1
24 # How long to sleep in idle loops (temporary!)
27 ### Settings relating to reward generation
29 # Address to generate rewards to
30 TrackerAddr = 'mrsP7M31efGkQHXb7nRiWLDjfV2M8oakf2' # testnet
32 # Coinbaser command to control reward delegation
33 # NOTE: This example donates 1% of block rewards to Luke-Jr for Eloipool development
34 CoinbaserCmd = 'echo -e "1\\n$((%d / 100))\\n1579aXhdwvKZEMrAKoCZhzGuqMa8EonuXU"'
36 ### Settings relating to upstream data providers
38 # JSON-RPC server for getmemorypool
39 UpstreamURI = 'http://user:pass@localhost:18332'
41 # Bitcoin p2p server for announcing blocks found
42 UpstreamBitcoindNode = ('127.0.0.1', 18333) # testnet
44 # Network ID for the primary blockchain
45 UpstreamNetworkId = b'\xFA\xBF\xB5\xDA' # testnet
47 # Secret username allowed to use setworkaux
50 # URI to send gotwork with info for every share submission
53 # Share hashes must be below this to be submitted to gotwork
54 GotWorkTarget = 0x000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
56 ### Settings relating to network services
58 # Addresses to listen on for JSON-RPC getwork server
59 # Note that Eloipool only supports IPv6 sockets, and if you want to bind to an
60 # IPv4 address you will need to prepend it with ::ffff: eg ::ffff:192.168.1.2
65 # Addresses to listen on for Bitcoin node
66 # Note that Eloipool only supports IPv6 sockets, and if you want to bind to an
67 # IPv4 address you will need to prepend it with ::ffff: eg ::ffff:192.168.1.2
68 BitcoinNodeAddresses = (
72 # Addresses that are allowed to "spoof" from address with the X-Forwarded-For header
73 TrustedForwarders = ('::ffff:127.0.0.1',)
80 'filename': 'share-logfile',
81 'format': "{time} {Q(remoteHost)} {username} {YN(not(rejectReason))} {dash(YN(upstreamResult))} {dash(rejectReason)} {solution}\n",
90 'password': 'somethingsecret',
92 'statement': "insert into shares (rem_host, username, our_result, upstream_result, reason, solution) values ({Q(remoteHost)}, {username}, {YN(not(rejectReason))}, {YN(upstreamResult)}, {rejectReason}, decode({solution}, 'hex'))",
101 'password': 'somethingsecret',
103 '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}))",
109 'database': 'share.db',
111 'statement': "insert into shares (remoteHost, username, rejectReason, upstreamResult, solution) values ({remoteHost}, {username}, {rejectReason}, {upstreamResult}, {solution})",