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 = 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
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)
16 WorkQueueSizeClear = (0x1000, 0x2000)
18 # Minimum and maximum of BLANK merkle roots to keep queued, one height up
19 # (used for longpolls)
20 WorkQueueSizeLongpoll = (0x1000, 0x2000)
22 # How long to wait between getmemorypool updates normally
23 MinimumTxnUpdateWait = 5
25 # How long to wait between retries if getmemorypool fails
26 TxnUpdateRetryWait = 1
28 # How long to sleep in idle loops (temporary!)
31 ### Settings relating to reward generation
33 # Address to generate rewards to
34 TrackerAddr = 'mrsP7M31efGkQHXb7nRiWLDjfV2M8oakf2' # testnet
36 # Coinbaser command to control reward delegation
37 # NOTE: This example donates 1% of block rewards to Luke-Jr for Eloipool development
38 CoinbaserCmd = 'echo -e "1\\n$((%d / 100))\\n1579aXhdwvKZEMrAKoCZhzGuqMa8EonuXU"'
40 ### Settings relating to upstream data providers
42 # JSON-RPC server for getmemorypool
43 UpstreamURI = 'http://user:pass@localhost:18332'
45 # Bitcoin p2p server for announcing blocks found
46 UpstreamBitcoindNode = ('127.0.0.1', 18333) # testnet
48 # Network ID for the primary blockchain
49 UpstreamNetworkId = b'\xFA\xBF\xB5\xDA' # testnet
51 # Secret username allowed to use setworkaux
54 # URI to send gotwork with info for every share submission
57 # Share hashes must be below this to be submitted to gotwork
58 GotWorkTarget = 0x00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
60 ### Settings relating to network services
62 # Addresses to listen on for JSON-RPC getwork server
63 # Note that Eloipool only supports IPv6 sockets, and if you want to bind to an
64 # IPv4 address you will need to prepend it with ::ffff: eg ::ffff:192.168.1.2
69 # Addresses to listen on for Bitcoin node
70 # Note that Eloipool only supports IPv6 sockets, and if you want to bind to an
71 # IPv4 address you will need to prepend it with ::ffff: eg ::ffff:192.168.1.2
72 BitcoinNodeAddresses = (
76 # Addresses that are allowed to "spoof" from address with the X-Forwarded-For header
77 TrustedForwarders = ('::ffff:127.0.0.1',)
84 'filename': 'share-logfile',
85 'format': "{time} {Q(remoteHost)} {username} {YN(not(rejectReason))} {dash(YN(upstreamResult))} {dash(rejectReason)} {solution}\n",
94 'password': 'somethingsecret',
96 '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'))",
105 'password': 'somethingsecret',
107 '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}))",
113 'database': 'share.db',
115 'statement': "insert into shares (remoteHost, username, rejectReason, upstreamResult, solution) values ({remoteHost}, {username}, {rejectReason}, {upstreamResult}, {solution})",