kernel: remove btck_chain_get_genesis

It is equivalent to calling btck_chain_get_by_height(0).
This commit is contained in:
stickies-v
2025-11-06 17:34:12 +00:00
parent 513a0da2e0
commit 4dd7e6dc48
4 changed files with 1 additions and 21 deletions

View File

@@ -664,7 +664,7 @@ void chainman_reindex_test(TestDirectory& test_directory)
// Sanity check some block retrievals
auto chain{chainman->GetChain()};
BOOST_CHECK_THROW(chain.GetByHeight(1000), std::runtime_error);
auto genesis_index{chain.Genesis()};
auto genesis_index{chain.Entries().front()};
BOOST_CHECK(!genesis_index.GetPrevious());
auto genesis_block_raw{chainman->ReadBlock(genesis_index).value().ToBytes()};
auto first_index{chain.GetByHeight(0)};