Skip to content

Commit 4f520cc

Browse files
committed
f - check if the Offer supports the chain
1 parent c8a91c4 commit 4f520cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7169,6 +7169,10 @@ where
71697169
let entropy = &*self.entropy_source;
71707170
let secp_ctx = &self.secp_ctx;
71717171

7172+
if !offer.supports_chain(self.chain_hash) {
7173+
return Err(Bolt12SemanticError::UnsupportedChain);
7174+
}
7175+
71727176
let builder = offer.request_invoice_deriving_payer_id(
71737177
expanded_key, entropy, secp_ctx, payment_id
71747178
)?;

0 commit comments

Comments
 (0)