Module bump_transaction
Expand description
Utilities for bumping transactions originating from Events.
Structs§
- Anchor
Descriptor - A descriptor used to sign for a commitment transaction’s anchor output.
- Bump
Transaction Event Handler - A handler for
Event::BumpTransactionevents that sources confirmed UTXOs from aCoinSelectionSourceto fee bump transactions via Child-Pays-For-Parent (CPFP) or Replace-By-Fee (RBF). - Coin
Selection - The result of a successful coin selection attempt for a transaction requiring additional UTXOs to cover its fees.
- Input
- An input that must be included in a transaction when performing coin selection through
CoinSelectionSource::select_confirmed_utxos. It is guaranteed to be a SegWit input, so it must have an emptyTxIn::script_sigwhen spent. - Utxo
- An unspent transaction output that is available to spend resulting from a successful
CoinSelectionattempt. - Wallet
- A wrapper over
WalletSourcethat implementsCoinSelectionby preferring UTXOs that would avoid conflicting double spends. If not enough UTXOs are available to do so, conflicting double spends may happen.
Enums§
- Bump
Transaction Event - Represents the different types of transactions, originating from LDK, to be bumped.
Traits§
- Coin
Selection Source - An abstraction over a bitcoin wallet that can perform coin selection over a set of UTXOs and can
sign for them. The coin selection method aims to mimic Bitcoin Core’s
fundrawtransactionRPC, which most wallets should be able to satisfy. Otherwise, consider implementingWalletSource, which can provide a default implementation of this trait when used withWallet. - Wallet
Source - An alternative to
CoinSelectionSourcethat can be implemented and used alongWalletto provide a default implementation toCoinSelectionSource.