Skip to main content

CHECKED_PEG_OUT_FEE_MODULE_CONSENSUS_VERSION

Constant CHECKED_PEG_OUT_FEE_MODULE_CONSENSUS_VERSION 

Source
pub const CHECKED_PEG_OUT_FEE_MODULE_CONSENSUS_VERSION: ModuleConsensusVersion;
Expand description

From this module consensus version on, a peg-out whose declared fee rate and weight do not describe a fee that can exist on chain is rejected.

Before it, Feerate::calculate_fee multiplied unchecked and wrapped in release profiles, so such a peg-out was accepted and broadcast with a fee too low to confirm, stranding the inputs it had already removed from the wallet.