Trait Zip317FeeRule

Source
pub trait Zip317FeeRule: FeeRule {
    // Required methods
    fn marginal_fee(&self) -> Zatoshis;
    fn grace_actions(&self) -> usize;
}
Expand description

An extension to the [FeeRule] trait that exposes methods required for ZIP 317 fee calculation.

Required Methods§

Source

fn marginal_fee(&self) -> Zatoshis

Returns the ZIP 317 marginal fee.

Source

fn grace_actions(&self) -> usize

Returns the ZIP 317 number of grace actions

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Zip317FeeRule for FeeRule

Source§

fn marginal_fee(&self) -> Zatoshis

Source§

fn grace_actions(&self) -> usize

Implementors§