Added log message for share above 100k
[stratum-mining.git] / launcher_demo.tac
1 # Run me with "twistd -ny launcher_demo.tac -l -"
2
3 # Add conf directory to python path.
4 # Configuration file is standard python module.
5 import os, sys
6 sys.path = [os.path.join(os.getcwd(), 'conf'),] + sys.path
7
8 # Bootstrap Stratum framework
9 import stratum
10 from stratum import settings
11 application = stratum.setup()
12
13 # Load mining service into stratum framework
14 import mining
15
16 from mining.interfaces import Interfaces
17 from mining.interfaces import WorkerManagerInterface, ShareManagerInterface, TimestamperInterface
18
19 Interfaces.set_share_manager(ShareManagerInterface())
20 Interfaces.set_worker_manager(WorkerManagerInterface())
21 Interfaces.set_timestamper(TimestamperInterface())
22
23 mining.setup()