Skip to content

Commit

Permalink
GH-1062 Remove unused read_block_by_id. It did not verify the read bl…
Browse files Browse the repository at this point in the history
…ock was the correct block id. Not used, so just removed it.
  • Loading branch information
heifner committed Feb 5, 2025
1 parent 4fa1edf commit 002f31c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libraries/chain/include/eosio/chain/block_log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ namespace eosio { namespace chain {
std::optional<signed_block_header> read_block_header_by_num(uint32_t block_num)const;
std::optional<block_id_type> read_block_id_by_num(uint32_t block_num)const;

signed_block_ptr read_block_by_id(const block_id_type& id)const {
return read_block_by_num(block_header::num_from_id(id));
}

/**
* Return offset of block in file, or block_log::npos if it does not exist.
*/
Expand Down

0 comments on commit 002f31c

Please sign in to comment.