Con Kolivas
|
e4f1a87050
|
Add a helper function for pthread_mutex_timedlock
|
10 years ago |
Con Kolivas
|
75eb1cf155
|
Add error checking to json set wrappers
|
10 years ago |
Con Kolivas
|
67f6a0148c
|
Provide a macro helper for json_pack that checks the return value and describes what the error is and where it came from
|
10 years ago |
kanoi
|
7daa709781
|
libckpool - add semaphone function set as cksum_*
|
10 years ago |
Con Kolivas
|
a832b64006
|
Fix getfd function to really send a full struct msghdr returning a new fd to copy sockets across processes
|
10 years ago |
kanoi
|
3e6fe0dde7
|
libckpool - make the rotating filename a separate function
|
10 years ago |
Con Kolivas
|
5b2b4c73ef
|
Remove all handling of interrupted calls which may have been blocking appropriate failure modes
|
10 years ago |
Con Kolivas
|
8dbc90fbaf
|
Add a helper function for safely checking if a buffer matches a command
|
10 years ago |
Con Kolivas
|
2b86f9bde1
|
Add a safe strcmp helper function
|
10 years ago |
ckolivas
|
e8c47e29fa
|
Move generic ckmsgq functions to ckpool.c to allow ckp to be included
|
11 years ago |
ckolivas
|
997a88191c
|
Make create_ckmsgq return a pointer to the generated queue and export the ckdbq functions
|
11 years ago |
ckolivas
|
50463445c0
|
Create a set of generic queue receiving thread and processing functions
|
11 years ago |
kanoi
|
027668b84f
|
ckdb - homepage stats
|
11 years ago |
Con Kolivas
|
c4c9a7b2a6
|
Create a rotating log function that changes hourly with an exclusive lock while writing
|
11 years ago |
Con Kolivas
|
6f099e43af
|
Fix missing error code
|
11 years ago |
Con Kolivas
|
7ff39bf07e
|
Use an enum for various errors and reject reasons for shares and put their strings in libckpool
|
11 years ago |
Con Kolivas
|
bb83f99a44
|
Convert workinfo id to int64_t to be compatible with database logging and add fields to the json that will be logged
|
11 years ago |
Con Kolivas
|
6c4abba93c
|
Provide a way to send binary data over unix sockets
|
11 years ago |
Con Kolivas
|
6a3a333031
|
connsock_t is a ckpool only struct
|
11 years ago |
Con Kolivas
|
19c31ad0c3
|
Fix inappropriate json object stealing
|
11 years ago |
Con Kolivas
|
93735544ca
|
Add debugging to hex2bin to know where it failed from
|
11 years ago |
Con Kolivas
|
b77e481c7e
|
Use a weak logmsg function within libckpool allowing it to be included standalone without touching ckpool code
|
11 years ago |
Con Kolivas
|
bc78acceca
|
Move the functions that require ckpool specific variable types out of libckpool
|
11 years ago |
Con Kolivas
|
ed341c9502
|
Create the beginnings of a separate tool to talk to ckpool sockets
|
11 years ago |
Con Kolivas
|
c4f0d57ae8
|
Fix various memory leaks
|
11 years ago |
Con Kolivas
|
24643e9ba0
|
Get the network difficulty from the block header and use that to determine possible block solves in proxy mode
|
11 years ago |
Con Kolivas
|
ed8f73a426
|
Unix message failures are almost always fatal so add debugging about where the functions were called from
|
11 years ago |
Con Kolivas
|
4f60dc1b8a
|
Provide a way to extract a serialised integer
|
11 years ago |
Con Kolivas
|
54883b37fd
|
Make read_socket_line accept a timeout in seconds
|
11 years ago |
Con Kolivas
|
dacb261ad5
|
Store the proxy method results in a unique struct and add it to a hashtable of notifications
|
11 years ago |
Con Kolivas
|
6ac33e57ac
|
Create initial stratum proxy connection
|
11 years ago |
Con Kolivas
|
e3fef890a0
|
Provide helpers for writing/selecting on a socket
|
11 years ago |
Con Kolivas
|
5e15e80327
|
Provide helpers for waiting on and reading a certain amount on a socket
|
11 years ago |
Con Kolivas
|
457f1c17ee
|
Create a separate thread for sending messages to clients, not blocking on any clients not ready for reads
|
11 years ago |
Con Kolivas
|
c274457caa
|
Add loglevel support with default of notice level, configurable on command line
|
11 years ago |
Con Kolivas
|
fd2c51bed3
|
Restructure includes to only have ckpool instance and proc instance in ckpool.h
|
11 years ago |
Con Kolivas
|
b71c35fbd3
|
Define extra logging levels and their call macros
|
11 years ago |
Con Kolivas
|
e946665023
|
Create stratum receive/send threads that will use their own hashtables and conditionals to do work
|
11 years ago |
Con Kolivas
|
55b8e8424a
|
Add connector process which will process all remote communications
|
11 years ago |
Con Kolivas
|
2b1f9510cf
|
Add a block update thread that polls bitcoind regularly for the latest hash and handle failed json requests as closed sockets
|
11 years ago |
Con Kolivas
|
8f0958bbfb
|
Add some default parameters to make polling intervals configurable
|
11 years ago |
Con Kolivas
|
1953cd2935
|
Add helper functions for sending/receiving to a process instance
|
11 years ago |
Con Kolivas
|
a723e70f51
|
Remove signal handlers and use a watchdog thread to watch for dead child processes and restart them
|
11 years ago |
Con Kolivas
|
0d3d2434be
|
Use name for socket directory and add more config options
|
11 years ago |
Con Kolivas
|
6f1838536c
|
Create a stratifier thread that updates the data from the gbt template regularly and receives other requests
|
11 years ago |
Con Kolivas
|
eb041c331f
|
Use a consistent method for sending/receiving messages across unix sockets
|
11 years ago |
Con Kolivas
|
194c8e42f3
|
Begin parsing of a config file, storing btcd url, auth and pass
|
11 years ago |
Con Kolivas
|
15170c79d2
|
Original sighandlers don't actually come in useful here
|
11 years ago |
Con Kolivas
|
219c49817e
|
Install the signal handlers only for the master process and try to clean up in consistent fashion with handler
|
11 years ago |
Con Kolivas
|
f864e1176c
|
Install signal handlers and store the originals in the ckpool_t
|
11 years ago |