My computer restarted yesterday, the debug.log file has logs from only today.
Why would that be the case? The log files are persistent and stored on disk, they should not be deleted between starts of the computer, or of the software.
That your log files are deleted between starts and that you constantly have to redownload seems to indicate that something is deleting your datadir and Bitcoin Core has to recreate it every time it starts up.
Today I stopped my computer (after exiting Bitcoin Core properly), and I just started it. I examined ...AppData/Roaming/Bitcoin, the
database dir was not present and debug.log contained logs from yesterday. I started Bitcoin Core, it started syncing where it left before the shutdown; I then examined ...AppData/Roaming/Bitcoin,
database dir was created and debug.log contains only logs from today (yesterday's logs are no longer there).
It seems that when I start Bitcoin Core the debug.log only keeps today's logs (or something similar), is this possible? Any conf option that would be responsible for that?
Concerning the syncing from scratch, it doesn't seem like the restart was the problem, but rather that it happened when Bitcoin Core was running, which means, it (BC) didn't exit properly.
Moreover, the last time the resyncing happened, blk files were already present ...
Is there something particular to look for?
Any errors. Pay attention to anything regarding the data directory and blocks folder. You should also look at the lines that are logged when you start up Bitcoin Core and see what it says about the initial state and whether that matches your settings.
Concerning my settings, the majority of them are the default ones, I only unchecked
Allow incoming connections in the
Network tab. Any idea on which settings to verify?
Thx.
PS: In order to reproduce, I would've to stop my computer while BC is running, I just don't wanna do that and risk losing some days (blockchain years) of syncing.