1
2
3
4
5
6
7
8
9
10
11
use crate::streamable_struct;
use crate::Bytes32;
use chik_streamable_macro::Streamable;

streamable_struct!(SubEpochSummary {
    prev_subepoch_summary_hash: Bytes32,
    reward_chain_hash: Bytes32, // hash of reward chain at end of last segment
    num_blocks_overflow: u8, // How many more blocks than 384*(N-1)
    new_difficulty: Option<u64>, // Only once per epoch (diff adjustment)
    new_sub_slot_iters: Option<u64>, // Only once per epoch (diff adjustment)
});