kaspa_mining/block_template/
policy.rs

1/// Policy houses the policy (configuration parameters) which is used to control
2/// the generation of block templates. See the documentation for
3/// NewBlockTemplate for more details on how each of these parameters are used.
4#[derive(Clone)]
5pub struct Policy {
6    /// max_block_mass is the maximum block mass to be used when generating a block template.
7    pub(crate) max_block_mass: u64,
8}
9
10impl Policy {
11    pub fn new(max_block_mass: u64) -> Self {
12        Self { max_block_mass }
13    }
14}