Skip to main content

ckb_app_config/configs/
fee_estimator.rs

1use serde::{Deserialize, Serialize};
2
3/// Fee estimator config options.
4#[derive(Clone, Debug, Default, Serialize, Deserialize)]
5#[serde(deny_unknown_fields)]
6pub struct Config {
7    /// The algorithm for fee estimator.
8    pub algorithm: Option<Algorithm>,
9}
10
11/// Specifies the fee estimates algorithm.
12#[derive(Clone, Copy, Debug, PartialEq, Serialize, Deserialize, Eq)]
13pub enum Algorithm {
14    /// Confirmation Fraction Fee Estimator
15    ConfirmationFraction,
16    /// Weight-Units Flow Fee Estimator
17    WeightUnitsFlow,
18}