Skip to content

Commit 1a6821e

Browse files
committed
f: Constraint Flow to only work for trait implementing chain::Listen
1 parent ba8de7c commit 1a6821e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/offers/flow.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use crate::blinded_path::message::{
1414
BlindedMessagePath, MessageContext, MessageForwardNode, OffersContext,
1515
};
1616
use crate::blinded_path::payment::BlindedPaymentPath;
17+
use crate::chain;
1718
use crate::ln::channelmanager::PaymentId;
1819
use crate::ln::inbound_payment;
1920
use crate::offers::invoice::{Bolt12Invoice, DerivedSigningPubkey, InvoiceBuilder};
@@ -40,7 +41,7 @@ use core::time::Duration;
4041
#[cfg(feature = "dnssec")]
4142
use crate::onion_message::dns_resolution::DNSResolverMessage;
4243

43-
pub trait Flow {
44+
pub trait Flow: chain::Listen {
4445
fn create_offer_builder(
4546
&self, nonce: Nonce,
4647
) -> Result<OfferBuilder<DerivedMetadata, secp256k1::All>, Bolt12SemanticError>;

0 commit comments

Comments
 (0)