diff --git a/zebra-consensus/src/error.rs b/zebra-consensus/src/error.rs index aeb7e6b7145..681f3a8b798 100644 --- a/zebra-consensus/src/error.rs +++ b/zebra-consensus/src/error.rs @@ -20,6 +20,7 @@ use proptest_derive::Arbitrary; const MAX_EXPIRY_HEIGHT: block::Height = block::Height::MAX_EXPIRY_HEIGHT; #[derive(Error, Copy, Clone, Debug, PartialEq, Eq)] +#[allow(missing_docs)] pub enum SubsidyError { #[error("no coinbase transaction in block")] NoCoinbase, @@ -36,6 +37,7 @@ pub enum SubsidyError { #[derive(Error, Clone, Debug, PartialEq, Eq)] #[cfg_attr(any(test, feature = "proptest-impl"), derive(Arbitrary))] +#[allow(missing_docs)] pub enum TransactionError { #[error("first transaction must be coinbase")] CoinbasePosition, @@ -226,6 +228,7 @@ impl From for TransactionError { } #[derive(Error, Clone, Debug, PartialEq, Eq)] +#[allow(missing_docs)] pub enum BlockError { #[error("block contains invalid transactions")] Transaction(#[from] TransactionError), diff --git a/zebra-consensus/src/lib.rs b/zebra-consensus/src/lib.rs index 1a3d1d304b8..cb53cedb9aa 100644 --- a/zebra-consensus/src/lib.rs +++ b/zebra-consensus/src/lib.rs @@ -40,11 +40,10 @@ mod config; mod parameters; mod primitives; mod script; -pub mod transaction; pub mod chain; -#[allow(missing_docs)] pub mod error; +pub mod transaction; pub use block::{ subsidy::{