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 |
Con Kolivas
|
2f7f3ecad4
|
Store the pid in the proc instance structure and try to clean up on processes exiting
|
11 years ago |
Con Kolivas
|
2c9653d138
|
Add a process structure to contain all variables likely to be used by spawned processes
|
11 years ago |
Con Kolivas
|
8a23b0bb28
|
Write the pid to a temporary file
|
11 years ago |
Con Kolivas
|
41bc9865c9
|
Begin basic main function parsing parameters, create a directory for sockets and create a listener thread
|
11 years ago |
Con Kolivas
|
1402039cc6
|
Don't show errno for logging lower than error
|
11 years ago |
Con Kolivas
|
c98ed16e38
|
Move gbtbase_t to bitcoin header
|
11 years ago |
Con Kolivas
|
4aa122edce
|
Add helper function for opening unix client sockets and cleanly closing and unlinking unix server sockets
|
11 years ago |
Con Kolivas
|
9fdcefc06d
|
Show errno whenever it exists in LOGERR or quit
|
11 years ago |
Con Kolivas
|
2a3e55ec4d
|
Add a helper function for opening a listening unix socket
|
11 years ago |
Con Kolivas
|
c653c781a3
|
We should also store the merkle hashes in the gbtbase structure
|
11 years ago |