-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.yml
More file actions
73 lines (58 loc) · 1.54 KB
/
config.yml
File metadata and controls
73 lines (58 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
# stratum server cfg
#
# @since 2016-06
# @copyright btc.com
#
# is using testnet3
network: "regtest"
payout_address: mt4BFpmdbGft3Q8eQDo5ehUVNq99uzBugy
kafka:
brokers: 1.1.1.1:9092,2.2.2.2:9092,3.3.3.3:9092
sserver:
ip: 0.0.0.0
port: 3333
# should be global unique, range: [1, 255]
id: 1
# write last mining notify job send time to file, for monitor
file_last_notify_time: /work/xxx/sserver_lastnotifytime.txt
# if enable simulator, all share will be accepted. for testing
enable_simulator: false
# if enable it, all share will make block and submit. for testing
enable_submit_invalid_block: false
users:
#
# https://example.com/get_user_id_list?last_id=0
# {"err_no":0,"err_msg":null,"data":{"jack":1,"terry":2}}
#
list_id_api_url: https://example.com/get_user_id_list
#
# pool mysql db: table.mining_workers
#
pooldb:
host: ""
port: 3306
username: dbusername
password: dbpassword
dbname: ""
redis:
addr: "localhost:6379" # host:port
password: ""
db: ""
gbtmaker:
# rpc call interval seconds
rpcinterval: 5
# check zmq when startup
is_check_zmq: true
bitcoind:
# bitcoind MUST with zmq options: -zmqpubhashblock, -zmqpubhashtx
# '-zmqpubhashtx' will use to check zmq is working when startup gbtmaker
zmq_addr: tcp://127.0.0.1:8331
rpc_addr: "" # http://127.0.0.1:8332
rpc_user: "" # username
rpc_password: "" # password
jobmaker:
pool_coinbase: /BTC.COM/
block_version: 0x20000000
# write last stratum job send time to file
file_last_job_time: /work/xxx/jobmaker_lastjobtime.txt