massa_consensus_exports/
block_graph_export.rs1use massa_models::{
2 address::Address,
3 block_id::BlockId,
4 clique::Clique,
5 prehash::{PreHashMap, PreHashSet},
6 slot::Slot,
7};
8
9use crate::block_status::{DiscardReason, ExportCompiledBlock};
10
11#[derive(Debug, Clone)]
13#[allow(clippy::type_complexity)]
14pub struct BlockGraphExport {
15 pub genesis_blocks: Vec<BlockId>,
17 pub active_blocks: PreHashMap<BlockId, ExportCompiledBlock>,
19 pub discarded_blocks: PreHashMap<BlockId, (DiscardReason, (Slot, Address, Vec<BlockId>))>,
21 pub best_parents: Vec<(BlockId, u64)>,
23 pub latest_final_blocks_periods: Vec<(BlockId, u64)>,
25 pub gi_head: PreHashMap<BlockId, PreHashSet<BlockId>>,
27 pub max_cliques: Vec<Clique>,
29}