zebra/zebra-chain/src/block.rs

27 lines
611 B
Rust
Raw Normal View History

//! Blocks and block-related structures (heights, headers, etc.)
// block::block is done on purpose and is the most representative name
#![allow(clippy::module_inception)]
mod block;
mod hash;
mod header;
2020-08-14 23:51:41 -07:00
mod height;
mod root_hash;
mod serialize;
pub mod merkle;
#[cfg(test)]
mod tests;
pub use block::Block;
pub use hash::BlockHeaderHash;
pub use header::BlockHeader;
2020-08-14 23:51:41 -07:00
pub use height::BlockHeight;
pub use root_hash::RootHash;
/// The error type for Block checks.
// XXX try to remove this -- block checks should be done in zebra-consensus
type Error = Box<dyn std::error::Error + Send + Sync + 'static>;