Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1798,6 +1798,17 @@ impl Node {
self.keys_manager.verify_signature(msg, sig, pkey)
}

/// Returns the current fee-rate estimate (in sats per 1000 weight units) for channel
/// funding transactions.
///
/// Useful for callers that need to budget on-chain fees for splice or open-channel
/// operations without round-tripping through the on-chain wallet API.
pub fn channel_funding_fee_sats_per_kwu(&self) -> u64 {
self.fee_estimator
.estimate_fee_rate(ConfirmationTarget::ChannelFunding)
.to_sat_per_kwu()
}

/// Exports the current state of the scorer. The result can be shared with and merged by light nodes that only have
/// a limited view of the network.
pub fn export_pathfinding_scores(&self) -> Result<Vec<u8>, Error> {
Expand Down
Loading