-
Notifications
You must be signed in to change notification settings - Fork 53
/
PROJ_CODING
67 lines (40 loc) · 2.78 KB
/
PROJ_CODING
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
Bithopper Coding Style
INDENTS
4 spaces per indent. Don't use tab characters. Don't use 3 spaces.
COMMENTS
Comments are really nice. Docstrings are also nice. We don't have enough of either.
ADDING A NEW FEATURE
I prefer new features be added as new files and modules. If they can't reasonably be
done like that or fit within a current module use that. If in doubt ask.
As much as possible please leave core modules as they are and extend via "hooks"
and plugins. To see an example plugin see plugins/hookexample/__init__.py
Convention for adding new plugin configuration to bh.cfg is to prefix with "plugin."
Convention is to use __init__.py to bootstrap the plugin and the bulk of the logic
go into a seperate .py file. This makes it easier to work with multiple plugins.
WHY DOES POOL.PY DO EVERYTHING?
Because I haven't had time to split it and clean it up.
1/30/2012: clr: It actually is slowly being killed. All of the info is being
spun off to btcnet_info. And then we can replace it in one sweet move.
bH could support scraping after logging in with mechanize. Small script example included
(http://wwwsearch.sourceforge.net/mechanize/)
---------------------------------------------------------------------------------------
Bug-issues list:
ajax updates move scroll (https://github.com/c00w/bitHopper/issues/69)
UPSTREAM: WSGI server tries to finish closed connections
(https://github.com/c00w/bitHopper/issues/262)
UPSTREAM: CGMINER w/ Multiple Coins Crashes (https://github.com/c00w/bitHopper/issues/343)
LP Workbench data not displaying (https://github.com/c00w/bitHopper/issues/493)
Can't get {user} to work - user: in user.cfg (https://github.com/c00w/bitHopper/issues/502)
bitHopper stalled (https://github.com/c00w/bitHopper/issues/535)
nmcbit.com duration calculation bad (https://github.com/c00w/bitHopper/issues/539)
---------------------------------------------------------------------------------------
Future to-do list:
Autoupdate pools.cfg (https://github.com/c00w/bitHopper/issues/361)
Extend Plugin Framework (https://github.com/c00w/bitHopper/issues/368)
Orange thing for mine_force/lp and lp time next to pool
(https://github.com/c00w/bitHopper/issues/408)
Sort lpworkbench servers (https://github.com/c00w/bitHopper/issues/418)
Store the duration in the db (https://github.com/c00w/bitHopper/issues/420)
Display Time since last LP on /stats# page next to round duration
(https://github.com/c00w/bitHopper/issues/422)
Add role: mine_fhop (https://github.com/c00w/bitHopper/issues/431)