CheckEphemeralSpends

Called for each transaction(package) if any dust is in the package. Checks that each transaction's parents have their dust spent by the child, where parents are either in the mempool or in the package itself. Sets out_child_state and out_child_wtxid on failure.

Synopsis

Declared in <policy/ephemeral_policy.h>

bool
CheckEphemeralSpends(
    Package const& package,
    CFeeRate dust_relay_rate,
    CTxMemPool const& tx_pool,
    TxValidationState& out_child_state,
    Wtxid& out_child_wtxid);

Return Value

true if all dust is properly spent.

Parameters

NameDescription
packageTransactions evaluated together as a package.
dust_relay_rateFee rate used to decide which outputs count as dust.
tx_poolMempool consulted for parents not present in the package.
out_child_stateSet with the rejection reason for the offending child on failure.
out_child_wtxidSet to the witness txid of the offending child on failure.