@@ -2506,6 +2506,56 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
2506
2506
}
2507
2507
}
2508
2508
2509
+ /*
2510
+ impl<SP: Deref> InteractivelyFunded<SP> for OutboundV2Channel<SP> where SP::Target: SignerProvider {
2511
+ fn context(&self) -> &ChannelContext<SP> {
2512
+ &self.context
2513
+ }
2514
+ fn context_mut(&mut self) -> &mut ChannelContext<SP> {
2515
+ &mut self.context
2516
+ }
2517
+ fn dual_funding_context(&self) -> &DualFundingChannelContext {
2518
+ &self.dual_funding_context
2519
+ }
2520
+ fn dual_funding_context_mut(&mut self) -> &mut DualFundingChannelContext {
2521
+ &mut self.dual_funding_context
2522
+ }
2523
+ fn unfunded_context(&self) -> &UnfundedChannelContext {
2524
+ &self.unfunded_context
2525
+ }
2526
+ fn interactive_tx_constructor_mut(&mut self) -> &mut Option<InteractiveTxConstructor> {
2527
+ &mut self.interactive_tx_constructor
2528
+ }
2529
+ fn is_initiator(&self) -> bool {
2530
+ true
2531
+ }
2532
+ }
2533
+
2534
+ impl<SP: Deref> InteractivelyFunded<SP> for InboundV2Channel<SP> where SP::Target: SignerProvider {
2535
+ fn context(&self) -> &ChannelContext<SP> {
2536
+ &self.context
2537
+ }
2538
+ fn context_mut(&mut self) -> &mut ChannelContext<SP> {
2539
+ &mut self.context
2540
+ }
2541
+ fn dual_funding_context(&self) -> &DualFundingChannelContext {
2542
+ &self.dual_funding_context
2543
+ }
2544
+ fn dual_funding_context_mut(&mut self) -> &mut DualFundingChannelContext {
2545
+ &mut self.dual_funding_context
2546
+ }
2547
+ fn unfunded_context(&self) -> &UnfundedChannelContext {
2548
+ &self.unfunded_context
2549
+ }
2550
+ fn interactive_tx_constructor_mut(&mut self) -> &mut Option<InteractiveTxConstructor> {
2551
+ &mut self.interactive_tx_constructor
2552
+ }
2553
+ fn is_initiator(&self) -> bool {
2554
+ false
2555
+ }
2556
+ }
2557
+ */
2558
+
2509
2559
impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
2510
2560
fn new_for_inbound_channel<'a, ES: Deref, F: Deref, L: Deref>(
2511
2561
fee_estimator: &'a LowerBoundedFeeEstimator<F>,
@@ -4859,7 +4909,6 @@ pub(super) struct DualFundingChannelContext {
4859
4909
/// The amount in satoshis we will be contributing to the channel.
4860
4910
pub our_funding_satoshis: u64,
4861
4911
/// The amount in satoshis our counterparty will be contributing to the channel.
4862
- #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
4863
4912
pub their_funding_satoshis: Option<u64>,
4864
4913
/// The funding transaction locktime suggested by the initiator. If set by us, it is always set
4865
4914
/// to the current block height to align incentives against fee-sniping.
0 commit comments