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

Name

Description

package

Transactions evaluated together as a package.

dust_relay_rate

Fee rate used to decide which outputs count as dust.

tx_pool

Mempool consulted for parents not present in the package.

out_child_state

Set with the rejection reason for the offending child on failure.

out_child_wtxid

Set to the witness txid of the offending child on failure.

Created with MrDocs