furszy c82ef91eae
make GetFirstStoredBlock assert that 'start_block' always has data
And transfer the responsibility of verifying whether 'start_block'
has data or not to the caller.

This is because the 'GetFirstStoredBlock' function responsibility
is to return the first block containing data. And the current
implementation can return 'start_block' when it has no data!. Which
is misleading at least.

Edge case behavior change:
Previously, if the block tip lacked data but all preceding blocks
contained data, there was no prune violation. And now, such
scenario will result in a prune violation.
2023-07-10 10:47:17 -03:00
..
2023-03-23 12:55:18 +01:00
2023-01-11 17:42:09 +01:00
2023-06-16 10:38:19 +01:00
2023-02-09 17:14:01 -03:00
2023-05-03 11:27:51 -05:00