mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
* chore: clean up `.gitignore` * fix: make RO cursors `Send + Sync` * feat(wip): bodies stage * driveby: improve docs * chore: don't panic if we're the first stage * chore: use `Vec` for ommers * feat: error handling in bodies downloader * chore: remove stale comment * chore: pascal-case stage id * refactor: remove unused new fns * refactor: distinguish downloaders with prefix * refactor: move downloader errs to own module * refactor: `stream_bodies` -> `bodies_stream` * test: fix borked imports in header stage * test: clean up header tests * test: add basic body stage tests * test: add 2 more body stage test skeletons * test: move generator test utils to own module * refactor: move proof functions to primitives crate * feat: add block generator test utils * test: more body stage tests * chore: fix typo (`Cannonical*` -> `Canonical`) * docs: document `bodies_to_download` * test: more body stage tests * test: more body stage tests * refactor: clean up body stage tests a bit * test: fix broken tests * refactor: clean up body stage tests * test: more body stage tests
14 lines
341 B
Rust
14 lines
341 B
Rust
//! Primitive errors
|
|
use thiserror::Error;
|
|
|
|
/// Primitives error type.
|
|
#[derive(Debug, Error)]
|
|
pub enum Error {
|
|
/// The provided input is invalid.
|
|
#[error("The provided input is invalid.")]
|
|
InvalidInput,
|
|
/// Failed to deserialize data into type.
|
|
#[error("Failed to deserialize data into type.")]
|
|
FailedDeserialize,
|
|
}
|