diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2023-06-16 17:32:21 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2023-07-10 10:47:17 -0300 |
commit | c82ef91eae38f385d408b095ebbc8a180ce52ebb (patch) | |
tree | 3be2122ba97f94d141a6a9ef40846868828e8199 /autogen.sh | |
parent | 430e7027a18870a296abb0bbd9332cbe40d8fdc0 (diff) |
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.
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions