Module sync

Source
Expand description

This module provides synchronous wrappers around BumpTransactionEventHandler and related types.

Structs§

BumpTransactionEventHandlerSync
A handler for Event::BumpTransaction events that sources confirmed UTXOs from a CoinSelectionSourceSync to fee bump transactions via Child-Pays-For-Parent (CPFP) or Replace-By-Fee (RBF).
WalletSync
A wrapper over WalletSourceSync that implements CoinSelectionSourceSync by preferring UTXOs that would avoid conflicting double spends. If not enough UTXOs are available to do so, conflicting double spends may happen.

Traits§

CoinSelectionSourceSync
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 fundrawtransaction RPC, which most wallets should be able to satisfy. Otherwise, consider implementing WalletSourceSync, which can provide a default implementation of this trait when used with WalletSync.
WalletSourceSync
An alternative to CoinSelectionSourceSync that can be implemented and used along WalletSync to provide a default implementation to CoinSelectionSourceSync.