reth_network/transactions/blob/error.rs
1//! Errors of the eth/72 blob fetcher.
2
3/// Why a body or cells weren't stored in an
4/// [`UnverifiedBlobTx`](super::unverified::UnverifiedBlobTx).
5#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]
6pub(super) enum StoreError {
7 /// A body is already stored, or the cells overlap stored columns.
8 #[error("body or cells already stored")]
9 Duplicate,
10 /// They can't belong to an eth/72 blob transaction or to the stored body.
11 #[error("body or cells don't match an eth/72 blob transaction")]
12 Invalid,
13 /// The body's input is larger than the pool accepts by default.
14 #[error("body larger than the pool accepts")]
15 TooLarge,
16 /// The body doesn't fit in the room left for its sender in the fetcher's buffer, holding the
17 /// bytes it needs.
18 #[error("no room left for the body, which needs {0} bytes")]
19 NoRoom(usize),
20}