Running the bitcoin core prone node and the power went off, I assume the system isn’t saving the file since it’s a prone node. -snip-
The block files?
It downloads, verify and delete blocks as it sync, without skipping a block height.
So on a side note: Since it verifies the whole blockchain, it's a "
full node" regardless of the famous term "
prune node" which is probably inspired by "
prune mode" when a full node is set to prune its block storage.
For the UTXO-set which is part of the syncing process, it does periodically, But it's first saved in your cache,
I'm sure you know already that Bitcoin Core has a cache (
that you can increase with dbcache) where your cached UTXO set is temporarily saved.
But when needed, it saves it to your disk in batches (
max size determined by dbbatchsize), e.g.: once the cache is full.
About the mentioned "
corruption" above, it usually happens when it's within the process of flushing from cache to disk.
Or basically anytime when something is being written to your disk but it's abruptly interrupted.
You'll see the affected file in your "
debug.log" file if that happens, it also comes with an error.
-snip- does that mean it’s actually downloading and keeping the block in the range of the prone i set i the prone block storage of 2GB i set, while deleting the block that aren’t in the range?
Yes, but it's not 100% accurate on the size, it may go a bit over or lower than your prune settings so keep a good amount of wiggle room in your free disk space.