kaspa_consensus_core/pruning.rs
1use crate::{
2 header::Header,
3 trusted::{TrustedGhostdagData, TrustedHeader},
4};
5use kaspa_hashes::Hash;
6use std::sync::Arc;
7
8pub type PruningPointProof = Vec<Vec<Arc<Header>>>;
9
10pub type PruningPointsList = Vec<Arc<Header>>;
11
12pub struct PruningPointTrustedData {
13 /// The pruning point anticone from virtual PoV
14 pub anticone: Vec<Hash>,
15
16 /// Union of DAA window data required to verify blocks in the future of the pruning point
17 pub daa_window_blocks: Vec<TrustedHeader>,
18
19 /// Union of GHOSTDAG data required to verify blocks in the future of the pruning point
20 pub ghostdag_blocks: Vec<TrustedGhostdagData>,
21}