Struct wallet_core::c::settings::LinearFee
source · #[repr(C)]pub struct LinearFee {
pub constant: u64,
pub coefficient: u64,
pub certificate: u64,
pub per_certificate_fees: PerCertificateFee,
pub per_vote_certificate_fees: PerVoteCertificateFee,
}
Expand description
Linear fee using the basic affine formula
COEFFICIENT * bytes(COUNT(tx.inputs) + COUNT(tx.outputs)) + CONSTANT + CERTIFICATE*COUNT(certificates)
.
Fields§
§constant: u64
§coefficient: u64
§certificate: u64
§per_certificate_fees: PerCertificateFee
§per_vote_certificate_fees: PerVoteCertificateFee
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for LinearFee
impl Send for LinearFee
impl Sync for LinearFee
impl Unpin for LinearFee
impl UnwindSafe for LinearFee
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more