Commit Graph

6 Commits

Author SHA1 Message Date
tomFlowee 6142efc7e1 Fix lifetime of the diskSpaceChecker class
As the DiskSpaceChecker owns a deadlinetimer, which depends on the asio
io_service, we need to ensure it is destructed before the io_service is.

The io_service, and now the diskSpaceChecker as well, are specifically
shut down, in order.
Application is still a singleton that dies after main() ends, but will
have nearly no members at that time.
2021-04-05 11:36:31 +02:00
tomFlowee 647b5887b5 Have a class that monitors filesystem available space.
This will be used to cleanly shut down the node when disk space
available is nearing critical levels. Well before we get into an issue.
2021-04-02 17:25:43 +02:00
TomZ 60f1864b74 API review. Use isClosingDown() 2020-05-21 19:33:13 +02:00
TomZ f868a8274e Make all protocol upgrades equal.
The "UAHF" one used to be "more equal", mostly just because it happened
to be the first.
This makes them all equally equal.

Specifically this removes the special casing and the enum for the 201708
HF (aka BCH fork-point).
We select the right branch now purely based on the historical check-
points.
2019-06-02 13:57:47 +02:00
TomZ c8e401f43a Move worker-threads functionality into the util lib. 2018-02-16 12:36:06 +01:00
TomZ 14bf96aa3c Start libs/server 2018-02-13 13:27:58 +01:00