Support for outbound gotwork JSON-RPC call
[bitcoin:eloipool.git] / config.py.example
1 ### Settings relating to server scaling/load
2
3 # Minimum and maximum of merkle roots to keep queued
4 WorkQueueSizeRegular = (50, 1000)
5
6 # Minimum and maximum of BLANK merkle roots to keep queued
7 # (used if we run out of populated ones, usually after a block is found)
8 WorkQueueSizeLongpoll = (2000, 5000)
9
10 # How long to wait between getmemorypool updates normally
11 MinimumTxnUpdateWait = 5
12
13 # How long to wait between retries if getmemorypool fails
14 TxnUpdateRetryWait = 1
15
16 # How long to sleep in idle loops (temporary!)
17 IdleSleepTime = 0.1
18
19 ### Settings relating to reward generation
20
21 # Address to generate rewards to
22 TrackerAddr = 'mrsP7M31efGkQHXb7nRiWLDjfV2M8oakf2'  # testnet
23
24 # Coinbaser command to control reward delegation
25 CoinbaserCmd = 'let x=%d-1; echo -e "1\\n$x\\n1GEJfZRPrK2BLSSx3r6gwtuFxCUvq3QytN\\n"'
26
27 ### Settings relating to upstream data providers
28
29 # JSON-RPC server for getmemorypool
30 UpstreamURI = 'http://user:pass@localhost:18332'
31
32 # Bitcoin p2p server for announcing blocks found
33 UpstreamBitcoindNode = ('127.0.0.1', 18333)  # testnet
34
35 # Network ID for the primary blockchain
36 UpstreamNetworkId = b'\xFA\xBF\xB5\xDA'  # testnet
37
38 # Secret username allowed to use setworkaux
39 #SecretUser = ""
40
41 # URI to send gotwork with info for every share submission
42 #GotWorkURI = ''
43
44 ### Settings relating to network services
45
46 # Address to listen on for JSON-RPC getwork server
47 JSONRPCAddress = ('', 8337)