This pull implements a new mode of operation which automatically removes old block files trying to maintain at most a maximum amount of disk space used by the node. This amount is configured by the user with the -prune switch.
There’s also a lightweight sanity check which executes periodically during runtime to make sure the minimum block files required for the node to be operative are present.
This should allow to lower the amount of resources needed to run a node.
See the individual commits, about all the changes introduced.