Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 2aec209

Browse files
committed
Release notes #1943
1 parent e8e9b65 commit 2aec209

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

newsfragments/1943.feature.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Methods now raise :class:`~eth.exceptions.BlockNotFound` when retrieving a block, and some part
2+
of the block is missing. These methods used to raise a KeyError if transactions were missing, or a
3+
``HeaderNotFound`` if uncles were missing:
4+
5+
- :meth:`eth.db.chain.ChainDB.get_block_by_header`
6+
- :meth:`eth.db.chain.ChainDB.get_block_by_hash` (it still raises a HeaderNotFound if there is no
7+
header matching the given hash)
8+
- :meth:`~eth.abc.BlockHeaderAPI`

0 commit comments

Comments
 (0)