upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/rpc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc.cpp')
-rw-r--r--src/rpc.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/rpc.cpp b/src/rpc.cpp
index a3560ff..3cee687 100644
--- a/src/rpc.cpp
+++ b/src/rpc.cpp
@@ -5120,10 +5120,17 @@ void ThreadRPCServer(void*)
5120 // armed for its one wallet probe before it is allowed to send. 5120 // armed for its one wallet probe before it is allowed to send.
5121 ReconcilePayouts(); 5121 ReconcilePayouts();
5122 5122
5123 _beginthread(AcceptLoopFn, 0, NULL); 5123 // _beginthread cannot throw (it reports -1), but an unchecked failure
5124 _beginthread(LocalAcceptFn, 0, NULL); 5124 // leaves the pool running deaf: nobody accepts, announces, or pays, and
5125 _beginthread(ThreadBtfPoolAnnouncer, 0, NULL); 5125 // nothing in the log says why.
5126 _beginthread(PayoutThreadFn, 0, NULL); 5126 if (_beginthread(AcceptLoopFn, 0, NULL) == (uintptr_t)-1)
5127 LogPrint("pool", "[pool] FATAL: accept loop thread failed to spawn -- miners cannot connect\n");
5128 if (_beginthread(LocalAcceptFn, 0, NULL) == (uintptr_t)-1)
5129 LogPrint("pool", "[pool] local accept thread failed to spawn\n");
5130 if (_beginthread(ThreadBtfPoolAnnouncer, 0, NULL) == (uintptr_t)-1)
5131 LogPrint("pool", "[pool] announcer thread failed to spawn -- pool will not be advertised\n");
5132 if (_beginthread(PayoutThreadFn, 0, NULL) == (uintptr_t)-1)
5133 LogPrint("pool", "[pool] FATAL: payout thread failed to spawn -- no one gets paid\n");
5127 5134
5128 PoolEventLoop(); // blocks until gPoolRunning = false or fShutdown 5135 PoolEventLoop(); // blocks until gPoolRunning = false or fShutdown
5129 5136